mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-06-16 08:56:07 +00:00
make sure the peer isn't idle before entering drop mode
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user