diff --git a/melody.go b/melody.go index 0b636c5..040a1e3 100644 --- a/melody.go +++ b/melody.go @@ -88,7 +88,7 @@ func (m *Melody) HandleRequest(w http.ResponseWriter, r *http.Request) { m.hub.register <- session - go m.connectHandler(session) + m.connectHandler(session) go session.writePump()