mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-26 16:39:24 +00:00
Reconnect on session removal (mattermost)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user