summaryrefslogtreecommitdiffstats
path: root/matterclient/matterclient.go
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient/matterclient.go')
-rw-r--r--matterclient/matterclient.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index aa944a18..38be9b00 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -125,9 +125,11 @@ func (m *MMClient) Login() error {
if appErr != nil {
d := b.Duration()
m.log.Debug(appErr.DetailedError)
+ //TODO more generic fix needed
if !strings.Contains(appErr.DetailedError, "connection refused") &&
!strings.Contains(appErr.DetailedError, "invalid character") &&
- !strings.Contains(appErr.DetailedError, "connection reset by peer") {
+ !strings.Contains(appErr.DetailedError, "connection reset by peer") &&
+ !strings.Contains(appErr.DetailedError, "connection timed out") {
if appErr.Message == "" {
return errors.New(appErr.DetailedError)
}