fix: in simulation dead connections need to stop receiving traffic after 1 second

This commit is contained in:
Evan Tschannen 2019-11-15 10:16:44 -08:00
parent 3c2d849c8d
commit 57fdbbf975
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ private:
void closeInternal() {
if(peer) {
peer->peerClosed();
stopReceive = delay(1.0);
}
leakedConnectionTracker.cancel();
peer.clear();