mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-10-09 15:58:34 +00:00
a86a5e6839
checkNow was calling bridge.checkForUpdate() which invokes updater.checkForUpdates() via IPC. startAutoCheck() in the main process already calls checkForUpdates() on a 5s timer, and if that network request is still pending, the concurrent IPC call from checkNow hangs indefinitely, causing the UI to be stuck in "checking" state forever. Per the original design spec, checkNow should use performCheck() (GitHub API) directly. This is completely independent of electron-updater's internal state machine, so it never conflicts with the background startAutoCheck(). performCheck handles isCheckingRef, isChecking, hasUpdate, and latestRelease; checkNow only manages manualCheckStatus.