commit d4076f2a544cbc80974930c835b96b3d1942022f
Author: Wim <wim@42.be>
Date: Thu Nov 16 20:19:52 2017 +0000
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 0b5f0a0..e43fd22 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -8179 +81714 @@ func (m *MMClient) StatusLoop() {
backoff = time.Second * 60
case <-time.After(time.Second * 5):
if retries > 3 {
+ m.log.Debug("StatusLoop() timeout")
m.Logout()
m.WsQuit = false
- m.Login()
+ err := m.Login()
+ if err != nil {
+ log.Errorf("Login failed: %#v", err)
+ break
+ }
if m.OnWsConnect != nil {
m.OnWsConnect()
}