Bug 1753195 - Call _actionDone when going offline to dismiss progress bar in NntpClient.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D138873 --HG-- extra : amend_source : e20893e422bd72789d9bfbd7c12c7b28175ef0a7
This commit is contained in:
Родитель
63e0bf07c3
Коммит
bd0aa1cc94
|
@ -173,8 +173,7 @@ class NntpClient {
|
|||
*/
|
||||
_onError = event => {
|
||||
this._logger.error(event, event.name, event.message, event.errorCode);
|
||||
this.quit();
|
||||
this._actionDone(event.errorCode);
|
||||
this.quit(event.errorCode);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -370,10 +369,11 @@ class NntpClient {
|
|||
/**
|
||||
* Send `QUIT` request to the server.
|
||||
*/
|
||||
quit() {
|
||||
quit(status = Cr.NS_OK) {
|
||||
this._sendCommand("QUIT");
|
||||
this._nextAction = this.close;
|
||||
this.close();
|
||||
this._actionDone(status);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче