mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-24 07:47:29 -04:00
Remove artificial wait
This commit is contained in:
@@ -18,15 +18,12 @@ export const checkForUpdates = async function checkForUpdates(
|
||||
) {
|
||||
win = win || BrowserWindow.getFocusedWindow();
|
||||
let result = {} as UpdateCheckResult;
|
||||
|
||||
try {
|
||||
win.webContents.send(APP_UPDATE_CHECK_START);
|
||||
result = await autoUpdater.checkForUpdates();
|
||||
} catch (err) {}
|
||||
|
||||
await new Promise((resolve) => {
|
||||
setTimeout(() => resolve(), 5000);
|
||||
});
|
||||
|
||||
win.webContents.send(APP_UPDATE_CHECK_END);
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user