mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 15:20:30 +00:00
Fix first queued packet on session pcreation
This commit is contained in:
parent
1c59338f01
commit
366d2af1d3
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user