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:
Christian Holler 2019-06-28 19:02:17 +00:00
Родитель 02cad972cd
Коммит 229fde0285
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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();
}