handle ERR_* errors gracefully

This commit is contained in:
zadam 2023-07-27 14:50:18 +02:00
parent a3fa8341ba
commit 5b0f487f3f

View File

@ -58,9 +58,7 @@ async function sync() {
if (e.message &&
(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('ERR_') || // node network errors
e.message.includes('Bad Gateway'))) {
ws.syncFailed();