5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-25 23:01:38 +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 // send
var bs []byte var bs []byte
bs, sinfo.packet = sinfo.packet, nil bs, sinfo.packet = sinfo.packet, nil
go func() { sinfo.send <- bs }() ss.core.router.sendPacket(bs)
} }
} }