Sleep before retrying email websocket connection
This commit is contained in:
parent
f5b627d80e
commit
61580f31b2
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ func StartWebsocket(ctx context.Context, username, password string) {
|
|||
continue
|
||||
}
|
||||
log.Error().Err(err).Msg("Error reading message")
|
||||
time.Sleep(10000)
|
||||
continue
|
||||
}
|
||||
err = handleMessage(ctx, message_type, message)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue