move where the queue size check before dropping would occur

This commit is contained in:
Arceliar 2020-05-17 07:21:09 -05:00
parent 62b9fab5f8
commit 527d443916
2 changed files with 1 additions and 5 deletions

View file

@ -310,6 +310,7 @@ func (p *peer) dropFromQueue(from phony.Actor, seq uint64) {
p.Act(from, func() {
switch {
case seq != p.seq:
//case p.queue.size < streamMsgSize:
case p.queue.drop():
p.core.log.Debugln("DEBUG dropped:", p.port, p.queue.size)
p.intf.notifyQueued(p.seq)