1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00

main.go: in readerLoop() also switch to RS_CONNECT state on shipclient.ErrNotConnected error.

This commit is contained in:
Henrik Hautakoski 2022-11-28 17:29:11 +01:00
parent 58d4538159
commit d8c198c24d

View file

@ -81,7 +81,7 @@ func readerLoop() {
if shErr, ok := err.(shipclient.ShipClientError); ok {
// Reconnect
if shErr.Type == shipclient.ErrSockRead {
if shErr.Type == shipclient.ErrSockRead || shErr.Type == shipclient.ErrNotConnected {
state = RS_CONNECT
}
}