Disconnect on logout.

This commit is contained in:
Douglas Dawson 2018-12-09 12:40:24 -05:00
parent c29dd1066d
commit aa17363ac8

View File

@ -102,6 +102,9 @@ func (e *eventStream) listen() (connected chan bool) {
break break
} }
if notifyResponse.Action == "logout" {
e.disconnect()
}
if notifyResponse.Status == "connected" { if notifyResponse.Status == "connected" {
connected <- true connected <- true
} else if notifyResponse.Status == "disconnected" { } else if notifyResponse.Status == "disconnected" {