mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 01:44:21 +02:00
Correctly stop content set download when downloader window is closed
This commit is contained in:
parent
0e31c79535
commit
92d2479b31
1 changed files with 5 additions and 0 deletions
|
@ -516,6 +516,11 @@ function maybeInstallDefaultContentSet(onComplete) {
|
||||||
});
|
});
|
||||||
req.pipe(unzipper);
|
req.pipe(unzipper);
|
||||||
|
|
||||||
|
window.on('closed', function() {
|
||||||
|
if (currentState == 'downloading') {
|
||||||
|
req.abort();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
userConfig.set('hasRun', true);
|
userConfig.set('hasRun', true);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue