From 159aad3a668088c5067ea49be2d092b444b2f7ec Mon Sep 17 00:00:00 2001 From: Oj Date: Fri, 22 Apr 2022 21:19:53 +0100 Subject: [PATCH] [Updater > Module] Redo host downloading with newer events --- src/updater/moduleUpdater.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/updater/moduleUpdater.js b/src/updater/moduleUpdater.js index 985e581..29a55d8 100644 --- a/src/updater/moduleUpdater.js +++ b/src/updater/moduleUpdater.js @@ -80,13 +80,9 @@ exports.init = (endpoint, { releaseChannel, version }) => { succeeded: true, updateCount: 1 }); - - events.emit('downloading-module', { - name: 'host' - }); }); - hostUpdater.on('update-progress', progress => events.emit('downloading-module-progress', { name: 'host', progress })); + hostUpdater.on('update-progress', progress => events.emit('downloading-module', { name: 'host', progress })); hostUpdater.on('update-not-available', hostPassed);