4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-13 17:36:28 +00:00

Further tweaks

This commit is contained in:
Neil Alexander
2019-01-23 17:05:16 +00:00
parent 81545fd9bf
commit 2944be4faf
4 changed files with 19 additions and 16 deletions

View File

@ -250,6 +250,7 @@ func (p *peer) handleTraffic(packet []byte, pTypeLen int) {
func (p *peer) sendPacket(packet []byte) {
// Is there ever a case where something more complicated is needed?
// What if p.out blocks?
atomic.AddUint64(&p.bytesSent, uint64(len(packet)))
p.out(packet)
}