5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-09 16:20:26 +00:00

Fix first queued packet on session pcreation

This commit is contained in:
Neil Alexander 2018-02-15 18:02:08 +00:00
parent 1c59338f01
commit 366d2af1d3

View File

@ -279,7 +279,7 @@ func (ss *sessions) handlePing(ping *sessionPing) {
// send
var bs []byte
bs, sinfo.packet = sinfo.packet, nil
go func() { sinfo.send <- bs }()
ss.core.router.sendPacket(bs)
}
}