new err code for timeout

This commit is contained in:
Luis Fernando Molina committed 2018-03-23 15:54:06 +01:00
1 parent 2d03a86d6f
commit 9e59c25d77
2 files changed
+4 -2

No files matched your search

Binary file not shown.
+4 -2
View File
@@ -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;