364741 set mFDConnected before sending the connected notification

r+sr=bz a=beltzner


git-svn-id: svn://10.0.0.236/trunk@248212 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%gmail.com
2008-03-19 22:12:28 +00:00
parent 4dd01a645e
commit 9d0ecb2579

View File

@@ -1332,8 +1332,6 @@ nsSocketTransport::OnSocketConnected()
mPollTimeout = mTimeouts[TIMEOUT_READ_WRITE];
mState = STATE_TRANSFERRING;
SendStatus(STATUS_CONNECTED_TO);
// assign mFD (must do this within the transport lock), but take care not
// to trample over mFDref if mFD is already set.
{
@@ -1342,6 +1340,8 @@ nsSocketTransport::OnSocketConnected()
NS_ASSERTION(mFDref == 1, "wrong socket ref count");
mFDconnected = PR_TRUE;
}
SendStatus(STATUS_CONNECTED_TO);
}
PRFileDesc *