diff options
author | Wim <wim@42.be> | 2017-04-07 23:25:42 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-04-07 23:27:41 +0200 |
commit | 89c66b9430098f3d1801b8e38af2230932aba387 (patch) | |
tree | 403be935d2416f7abab60e977987fd953170dbf8 /matterclient | |
parent | bd38319d8352e48eb0e29c5e30f094e5430d63e8 (diff) | |
download | matterbridge-msglm-89c66b9430098f3d1801b8e38af2230932aba387.tar.gz matterbridge-msglm-89c66b9430098f3d1801b8e38af2230932aba387.tar.bz2 matterbridge-msglm-89c66b9430098f3d1801b8e38af2230932aba387.zip |
Reconnect on session removal (mattermost)
Diffstat (limited to 'matterclient')
-rw-r--r-- | matterclient/matterclient.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index d2bfbae7..bdd8cbc6 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -178,6 +178,7 @@ func (m *MMClient) Login() error { } b.Reset() + m.log.Debug("WsClient: connected") m.WsSequence = 1 m.WsPingChan = make(chan *model.WebSocketResponse) // only start to parse WS messages when login is completely done @@ -630,6 +631,7 @@ func (m *MMClient) StatusLoop() { m.Logout() m.WsQuit = false m.Login() + go m.WsReceiver() } } time.Sleep(time.Second * 60) |