diff options
Diffstat (limited to 'internal/net/web.go')
| -rw-r--r-- | internal/net/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/net/web.go b/internal/net/web.go index 233928f..8353c8d 100644 --- a/internal/net/web.go +++ b/internal/net/web.go @@ -61,9 +61,9 @@ func newHTTPMux(s *Server) *http.ServeMux { return } sess := &Session{ - Conn: newWSConn(ws), - State: StateAccountName, + Conn: newWSConn(ws), } + sess.SetState(StateAccountName) sess.StartWriter() s.hub.Add(sess) go s.handleSession(sess, s.handler) |
