Disconnect on logout.
This commit is contained in:
parent
c29dd1066d
commit
aa17363ac8
@ -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