[Updater > Module] Retry host update check on error, minor host cleanup
This commit is contained in:
parent
668235aed9
commit
3de67cf760
1 changed files with 3 additions and 2 deletions
|
@ -118,11 +118,12 @@ exports.init = (endpoint, _settings, buildInfo) => {
|
|||
log('Modules', 'Host error');
|
||||
|
||||
checking = false;
|
||||
// die
|
||||
|
||||
setTimeout(() => hostUpdater.checkForUpdates(), 1000); // Retry after 1s
|
||||
});
|
||||
|
||||
const platform = process.platform === 'darwin' ? 'osx' : 'linux';
|
||||
hostUpdater.setFeedURL.bind(hostUpdater)(`${endpoint}/updates/${buildInfo.releaseChannel}?platform=${platform}&version=${buildInfo.version}`);
|
||||
hostUpdater.setFeedURL(`${endpoint}/updates/${buildInfo.releaseChannel}?platform=${platform}&version=${buildInfo.version}`);
|
||||
|
||||
baseUrl = `${endpoint}/modules/${buildInfo.releaseChannel}`;
|
||||
baseQuery = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue