new err code for timeout
This commit is contained in:
1 parent
2d03a86d6f
commit
9e59c25d77
2 files changed
+4
-2
No files matched your search
Binary file not shown.
+4
-2
@@ -166,7 +166,8 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
|
||||
if (err.message.indexOf("The server is busy") > 0
|
||||
|| err.code === 'ECONNRESET'
|
||||
|| err.code === 'ENOTFOUND') {
|
||||
|| err.code === 'ENOTFOUND'
|
||||
|| err.code === 'ESOCKETTIMEDOUT') {
|
||||
|
||||
setTimeout(secondTry, 1000);
|
||||
return;
|
||||
@@ -241,7 +242,8 @@ exports.newFileStorage = function newFileStorage(BOT) {
|
||||
|
||||
if (err.message.indexOf("The server is busy") > 0
|
||||
|| err.code === 'ECONNRESET'
|
||||
|| err.code === 'ENOTFOUND') {
|
||||
|| err.code === 'ENOTFOUND'
|
||||
|| err.code === 'ESOCKETTIMEDOUT') {
|
||||
|
||||
setTimeout(secondTry, 1000);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user