diff --git a/session/session.go b/session/session.go index 30dd068..f6ddeb7 100644 --- a/session/session.go +++ b/session/session.go @@ -94,6 +94,9 @@ func (s *Session) HandlerLoop() { s.Connection.sendPacket(subMessage) } } + c := <-s.ConnecionChannel + s.Connect(c) + s.HandlerLoop() } func (s *Session) Disconnect(code packets.DisconnectReasonCode) error {