Fix for case where we're trying to Write to a blocking stream, and we're out of buffer space. This should block. r=rpotts

git-svn-id: svn://10.0.0.236/trunk@53413 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 1999-11-13 06:16:52 +00:00
parent c4a2b4eb53
commit 50fd544966

View File

@ -621,7 +621,7 @@ nsPipe::nsPipeOutputStream::WriteSegments(nsReadSegmentFun reader,
if (NS_FAILED(rv))
goto done;
if (writeBufLen == 0) {
if (*writeCount > 0)
if (*writeCount > 0 && !mBlocking)
goto done;
if (pipe->mObserver/* && *writeCount == 0*/) {
mon.Exit(); // XXXbe avoid deadlock better