diff --git a/events_stream.go b/events_stream.go index e027eea..32fd2c7 100644 --- a/events_stream.go +++ b/events_stream.go @@ -111,7 +111,7 @@ func (e *eventStream) listen() (connected chan bool) { connected <- true } else if notifyResponse.Status == "disconnected" { e.disconnect() - } else if notifyResponse.Action == "logout" { + } else if notifyResponse.Action == "logout" { e.disconnect() } else { e.subscriptions.rwmutex.RLock()