Merge pull request #215 from Ooglely/master

Fix arguments to setTimeout for reattempting moving temp task files
master
Piero Toffanin 2024-04-03 16:54:08 -04:00 zatwierdzone przez GitHub
commit 726e02ced5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -304,8 +304,11 @@ module.exports = {
else{
if (++retries < 20){
logger.warn(`Cannot move ${srcPath}, probably caused by antivirus software (please disable it or add an exception), retrying (${retries})...`);
setTimeout(2000, move);
}else cb(err);
setTimeout(move, 2000);
} else {
logger.error(`Unable to move temp images (${srcPath}) after 20 retries. Error: ${err}`);
cb(err);
}
}
});
}