From 89c66b9430098f3d1801b8e38af2230932aba387 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 7 Apr 2017 23:25:42 +0200 Subject: Reconnect on session removal (mattermost) --- matterclient/matterclient.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'matterclient') 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) -- cgit v1.2.3