Correctly stop content set download when downloader window is closed

This commit is contained in:
Ryan Huffman 2016-01-20 12:01:14 -08:00 committed by Stephen Birarda
parent 0e31c79535
commit 92d2479b31

View file

@ -516,6 +516,11 @@ function maybeInstallDefaultContentSet(onComplete) {
});
req.pipe(unzipper);
window.on('closed', function() {
if (currentState == 'downloading') {
req.abort();
}
});
userConfig.set('hasRun', true);
});