diff --git a/mozilla/network/module/nsNetStream.cpp b/mozilla/network/module/nsNetStream.cpp index f0e8ab23447..d3505f11d89 100644 --- a/mozilla/network/module/nsNetStream.cpp +++ b/mozilla/network/module/nsNetStream.cpp @@ -308,6 +308,10 @@ nsresult nsBufferedStream::Write(const char *aBuf, *aWriteCount = aLen; m_DataLength += aLen; } + else if (m_bIsClosed) + { + rv = NS_BASE_STREAM_CLOSED; + } done: UnlockStream();