diff --git a/netwerk/base/src/nsFileTransport.cpp b/netwerk/base/src/nsFileTransport.cpp index 32e0a939e51..9413eddd6cc 100644 --- a/netwerk/base/src/nsFileTransport.cpp +++ b/netwerk/base/src/nsFileTransport.cpp @@ -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) { //