5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 17:15:40 +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()
m.log.Debug(appErr.DetailedError)
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 == "" {
return errors.New(appErr.DetailedError)
}