5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 11:05:40 +00:00

it helps to actually run the notifyQueued stuff...

This commit is contained in:
Arceliar 2020-05-16 17:24:26 -05:00
parent 052de98f12
commit b132560f65

View File

@ -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 {