diff --git a/network/module/nsNetStream.cpp b/network/module/nsNetStream.cpp index f0e8ab234479..d3505f11d895 100644 --- a/network/module/nsNetStream.cpp +++ b/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();