Fixing a bad merge. Reordered WriteRequest with ReleaseTransport in OnStopRequest.

git-svn-id: svn://10.0.0.236/trunk@66826 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gagan%netscape.com
2000-04-22 01:23:29 +00:00
parent 5ea79431e4
commit 97d633db2b

View File

@@ -766,13 +766,13 @@ nsHTTPPipelinedRequest::OnStopRequest(nsIChannel* channel, nsISupports* i_Contex
{
mMustCommit = PR_TRUE;
mAttempts++;
mOnStopDone = PR_TRUE;
rv = WriteRequest(mInputStream);
mTotalWritten = 0;
mHandler ->ReleaseTransport(mTransport, nsIHTTPProtocolHandler::DONTRECORD_CAPABILITIES, PR_TRUE);
mHandler->ReleaseTransport(mTransport,
nsIHTTPProtocolHandler::DONTRECORD_CAPABILITIES, PR_TRUE);
mTransport = null_nsCOMPtr ();
mOnStopDone = PR_TRUE;
rv = WriteRequest(mInputStream);
if (NS_SUCCEEDED (rv))
@@ -866,7 +866,8 @@ nsHTTPPipelinedRequest::RestartRequest()
mAttempts++;
mMustCommit = PR_TRUE;
mHandler ->ReleaseTransport(mTransport, nsIHTTPProtocolHandler::DONTRECORD_CAPABILITIES, PR_TRUE);
mHandler->ReleaseTransport(mTransport,
nsIHTTPProtocolHandler::DONTRECORD_CAPABILITIES, PR_TRUE);
mTransport = null_nsCOMPtr ();
rval = WriteRequest(mInputStream);