diff --git a/events_stream.go b/events_stream.go index 3ea05a1..e027eea 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()