diff --git a/src/yggdrasil/session.go b/src/yggdrasil/session.go index 681a1940..47a4e987 100644 --- a/src/yggdrasil/session.go +++ b/src/yggdrasil/session.go @@ -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) } }