diff options
author | Duco van Amstel <duco.vanamstel@gmail.com> | 2018-12-08 16:04:10 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2018-12-08 17:04:10 +0100 |
commit | a2754f15fc2bc2eede94e2e41712f9f0585f2426 (patch) | |
tree | 52894a30d0ca7a06b90a7b2266fde41a5e8404c5 /matterclient/matterclient.go | |
parent | b6d81f34ba7ee88e7a18a27cf4e0aeebaaf82c79 (diff) | |
download | matterbridge-msglm-a2754f15fc2bc2eede94e2e41712f9f0585f2426.tar.gz matterbridge-msglm-a2754f15fc2bc2eede94e2e41712f9f0585f2426.tar.bz2 matterbridge-msglm-a2754f15fc2bc2eede94e2e41712f9f0585f2426.zip |
Enable errcheck linter (#646)
Diffstat (limited to 'matterclient/matterclient.go')
-rw-r--r-- | matterclient/matterclient.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index 4997011b..f15b1d1b 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -208,7 +208,9 @@ func (m *MMClient) StatusLoop() { return } if m.WsConnected { - m.checkAlive() + if err := m.checkAlive(); err != nil { + log.Errorf("Connection is not alive: %#v", err) + } select { case <-m.WsPingChan: m.log.Debug("WS PONG received") |