Merge pull request #1 from dougnd/disconnect-on-forced-logout
Disconnect on logout.
This commit is contained in:
commit
8875cd5466
@ -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" {
|
||||||
|
Loading…
Reference in New Issue
Block a user