New network connection errors discovered
This commit is contained in:
1 parent
9e59c25d77
commit
17f8685254
3 files changed
+7
-3
No files matched your search
+4
-2
@@ -167,7 +167,8 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
if (err.message.indexOf("The server is busy") > 0
|
||||
|| err.code === 'ECONNRESET'
|
||||
|| err.code === 'ENOTFOUND'
|
||||
|| err.code === 'ESOCKETTIMEDOUT') {
|
||||
|| err.code === 'ESOCKETTIMEDOUT'
|
||||
|| err.code === 'ETIMEDOUT') {
|
||||
|
||||
setTimeout(secondTry, 1000);
|
||||
return;
|
||||
@@ -243,7 +244,8 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
if (err.message.indexOf("The server is busy") > 0
|
||||
|| err.code === 'ECONNRESET'
|
||||
|| err.code === 'ENOTFOUND'
|
||||
|| err.code === 'ESOCKETTIMEDOUT') {
|
||||
|| err.code === 'ESOCKETTIMEDOUT'
|
||||
|| err.code === 'ETIMEDOUT') {
|
||||
|
||||
setTimeout(secondTry, 1000);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user