handle ERR_CONNECTION_RESET gracefully

pull/255/head
zadam 2023-07-27 10:55:34 +07:00
parent 04813743e2
commit a3fa8341ba
1 changed files with 1 additions and 0 deletions

@ -60,6 +60,7 @@ async function sync() {
(e.message.includes('ECONNREFUSED') ||
e.message.includes('ERR_CONNECTION_REFUSED') ||
e.message.includes('ERR_ADDRESS_UNREACHABLE') ||
e.message.includes('ERR_CONNECTION_RESET') ||
e.message.includes('Bad Gateway'))) {
ws.syncFailed();