kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Merge pull request #215 from Ooglely/master
Fix arguments to setTimeout for reattempting moving temp task filespull/217/head
commit
726e02ced5
|
@ -304,8 +304,11 @@ module.exports = {
|
||||||
else{
|
else{
|
||||||
if (++retries < 20){
|
if (++retries < 20){
|
||||||
logger.warn(`Cannot move ${srcPath}, probably caused by antivirus software (please disable it or add an exception), retrying (${retries})...`);
|
logger.warn(`Cannot move ${srcPath}, probably caused by antivirus software (please disable it or add an exception), retrying (${retries})...`);
|
||||||
setTimeout(2000, move);
|
setTimeout(move, 2000);
|
||||||
}else cb(err);
|
} else {
|
||||||
|
logger.error(`Unable to move temp images (${srcPath}) after 20 retries. Error: ${err}`);
|
||||||
|
cb(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue