From 4382368b0891d75aa6bbcd5fd4d9de8e01a67f40 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sun, 24 May 2020 17:43:35 -0500 Subject: [PATCH] make sure the peer isn't idle before entering drop mode --- src/yggdrasil/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/peer.go b/src/yggdrasil/peer.go index ce120b8..b9641fc 100644 --- a/src/yggdrasil/peer.go +++ b/src/yggdrasil/peer.go @@ -304,7 +304,7 @@ func (p *peer) _handleIdle() { func (p *peer) dropFromQueue(from phony.Actor, seq uint64) { p.Act(from, func() { p.Act(nil, func() { - if seq == p.seq { + if seq == p.seq && !p.idle { p.drop = true p.max = p.queue.size + streamMsgSize }