Sleep before retrying email websocket connection

This commit is contained in:
Eli Ribble 2026-05-16 18:11:27 +00:00
parent f5b627d80e
commit 61580f31b2
No known key found for this signature in database

View file

@ -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 {