Bug on File Storage second try

This commit is contained in:
Luis Fernando Molina committed 2018-03-23 14:44:53 +01:00
1 parent 8953508f04
commit 59d8cb4f6c
2 files changed
+2

No files matched your search

Binary file not shown.
+2
View File
@@ -167,6 +167,7 @@ exports.newFileStorage = function newFileStorage(BOT) {
if (err.message.indexOf("The server is busy") > 0 || err.code === 'ECONNRESET') {
setTimeout(secondTry, 1000);
return;
function secondTry() {
@@ -239,6 +240,7 @@ exports.newFileStorage = function newFileStorage(BOT) {
if (err.message.indexOf("The server is busy") > 0 || err.code === 'ECONNRESET') {
setTimeout(secondTry, 1000);
return;
function secondTry() {