fixes bug 149090 "viewing an image three times corrupts web pages [leaks

file descriptors on all platforms]" r=dougt, sr=rpotts, a=asa
This commit is contained in:
darin%netscape.com 2002-06-07 05:07:51 +00:00
Родитель cfe1197148
Коммит 4c1d2466de
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -606,8 +606,10 @@ nsFileTransport::Run(void)
#endif
#endif
if (mRunState == SUSPENDED && NS_FAILED(mCancelStatus))
if (mRunState == SUSPENDED && NS_FAILED(mCancelStatus)) {
mRunState = CANCELED;
mService->RemoveSuspendedTransport(this);
}
while (mXferState != CLOSED && mRunState != SUSPENDED) {
//