зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1562288 - Properly close FTP stream when base stream was closed. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D36367 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
02cad972cd
Коммит
229fde0285
|
@ -1845,7 +1845,7 @@ nsFtpState::CloseWithStatus(nsresult status) {
|
|||
|
||||
// Shutdown the control connection processing if we are being closed with an
|
||||
// error. Note: This method may be called several times.
|
||||
if (!IsClosed() && status != NS_BASE_STREAM_CLOSED && NS_FAILED(status)) {
|
||||
if (!IsClosed() && NS_FAILED(status)) {
|
||||
if (NS_SUCCEEDED(mInternalError)) mInternalError = status;
|
||||
StopProcessing();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче