mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 08:22:30 +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);
|
||||
|
||||
window.on('closed', function() {
|
||||
if (currentState == 'downloading') {
|
||||
req.abort();
|
||||
}
|
||||
});
|
||||
|
||||
userConfig.set('hasRun', true);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue