Remove artificial wait

This commit is contained in:
Dean Campbell
2020-11-02 19:37:11 -08:00
parent 9d23df8b0c
commit 0cede03e88

View File

@@ -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;
};