Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit e7acf410700864b3c750b308d1da8e8a230a85ec Author: Wim <wim@42.be> Date: Fri Apr 07 23:25:42 2017 +0000 Reconnect on session removal (mattermost) diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 439ce9c..94b649b 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -726 +727 @@ func (b *Bmattermost) Connect() error {   flog.Info("Connection succeeded")   b.TeamId = b.mc.GetTeamId()   go b.mc.WsReceiver() + go b.mc.StatusLoop()   }   go b.handleMatter()   return nil diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index d2bfbae..bdd8cbc 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -1786 +1787 @@ 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 @@ -6306 +6317 @@ func (m *MMClient) StatusLoop() {   m.Logout()   m.WsQuit = false   m.Login() + go m.WsReceiver()   }   }   time.Sleep(time.Second * 60)