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
parent 7ef72968f0
commit 31160badcb

View File

@ -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) {
//