fix: potential flaky issues (#2733)

(cherry picked from commit 935b4f847c)
This commit is contained in:
Peng Xiao
2023-06-09 00:20:12 +08:00
committed by himself65
parent 17debbe3a8
commit 4373aae010
4 changed files with 38 additions and 15 deletions
@@ -45,7 +45,8 @@ export const registerUpdater = async () => {
_autoUpdater = autoUpdater;
if (!_autoUpdater) {
// skip auto update in dev mode
if (!_autoUpdater || isDev) {
return;
}