Skip to content

Commit

Permalink
fix: 重试时间改为半秒
Browse files Browse the repository at this point in the history
  • Loading branch information
song-xiao-lin committed Jun 5, 2024
1 parent f734952 commit a2bc3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/handlers/upgradeUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ module.exports = {
} catch (err) {
if (err.message.indexOf("operation not permitted") > -1) {
if (retriesLeft > 0) {
setTimeout(() => tryUnlink(retriesLeft - 1), 1000);
setTimeout(() => tryUnlink(retriesLeft - 1), 500);
} else {
reject("operation not permitted")
}
Expand Down

0 comments on commit a2bc3f8

Please sign in to comment.