mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-24 00:37:49 +00:00
it helps to actually run the notifyQueued stuff...
This commit is contained in:
parent
052de98f12
commit
b132560f65
@ -281,6 +281,8 @@ func (p *peer) _sendPackets(packets [][]byte) {
|
||||
if p.idle {
|
||||
p.idle = false
|
||||
p._handleIdle()
|
||||
} else {
|
||||
p.intf.notifyQueued(p.seq)
|
||||
}
|
||||
}
|
||||
|
||||
@ -296,6 +298,7 @@ func (p *peer) _handleIdle() {
|
||||
}
|
||||
}
|
||||
if len(packets) > 0 {
|
||||
p.seq++
|
||||
p.bytesSent += uint64(size)
|
||||
p.intf.out(packets)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user