mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 880737 - Cancel retry timer while pausing OTA download. r=bbondy
This commit is contained in:
parent
506def29fd
commit
2c5d35b0f0
@ -2830,8 +2830,15 @@ UpdateService.prototype = {
|
||||
* See nsIUpdateService.idl
|
||||
*/
|
||||
pauseDownload: function AUS_pauseDownload() {
|
||||
if (this.isDownloading)
|
||||
if (this.isDownloading) {
|
||||
this._downloader.cancel();
|
||||
} else if (this._retryTimer) {
|
||||
// Download status is still consider as 'downloading' during retry.
|
||||
// We need to cancel both retry and download at this stage.
|
||||
this._retryTimer.cancel();
|
||||
this._retryTimer = null;
|
||||
this._downloader.cancel();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user