mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-09 23:40:27 +00:00
Reconnect on connection reset by peer (mattermost). Fixes #69
This commit is contained in:
parent
581847f415
commit
95fac548bb
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user