Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Fix downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
GramingFoxTeam committed Aug 29, 2022
1 parent b092b00 commit 04661d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsEvents/UpdateFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ async function UpdateFiles (message, ws) {
repo: 'VancedMicroG'
}
];
global.downloadFinished = true;

if (!global.downloadFinished) {
if (typeof global.downloadFinished !== 'undefined' && !global.downloadFinished) {
return ws.send(
JSON.stringify({
event: 'error',
Expand All @@ -52,6 +51,7 @@ async function UpdateFiles (message, ws) {
})
);
}

global.downloadFinished = false;

await downloadFiles(filesToDownload, ws);
Expand Down

0 comments on commit 04661d2

Please sign in to comment.