5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-25 20:11:36 +00:00

Reconnect on connection reset by peer (mattermost). Fixes #69

This commit is contained in:
Wim 2016-11-02 20:00:00 +01:00
parent 581847f415
commit 95fac548bb

View File

@ -126,7 +126,8 @@ func (m *MMClient) Login() error {
d := b.Duration() d := b.Duration()
m.log.Debug(appErr.DetailedError) m.log.Debug(appErr.DetailedError)
if !strings.Contains(appErr.DetailedError, "connection refused") && if !strings.Contains(appErr.DetailedError, "connection refused") &&
!strings.Contains(appErr.DetailedError, "invalid character") { !strings.Contains(appErr.DetailedError, "invalid character") &&
!strings.Contains(appErr.DetailedError, "connection reset by peer") {
if appErr.Message == "" { if appErr.Message == "" {
return errors.New(appErr.DetailedError) return errors.New(appErr.DetailedError)
} }