Skip to content

Commit

Permalink
fixup! fs: add synchronous retries to rimraf
Browse files Browse the repository at this point in the history
  • Loading branch information
cjihrig committed Dec 8, 2019
1 parent b0f690b commit 8c2ca28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/fs/rimraf.js
Expand Up @@ -213,7 +213,8 @@ function _rmdirSync(path, options, originalErr) {
try {
return rmdirSync(path, options);
} catch {
sleep(i * options.retryDelay);
if (options.retryDelay > 0)
sleep(i * options.retryDelay);
}
}
}
Expand Down

0 comments on commit 8c2ca28

Please sign in to comment.