[network] SocketTransport2 cleanup

This commit is contained in:
Moonchild 2022-02-10 15:10:39 +00:00 committed by roytam1
commit 7f3a7225af
2 changed files with 22 additions and 13 deletions

View file

@ -350,11 +350,13 @@ private:
void OnMsgInputPending()
{
MOZ_ASSERT(OnSocketThread(), "not on socket thread");
if (mState == STATE_TRANSFERRING)
mPollFlags |= (PR_POLL_READ | PR_POLL_EXCEPT);
}
void OnMsgOutputPending()
{
MOZ_ASSERT(OnSocketThread(), "not on socket thread");
if (mState == STATE_TRANSFERRING)
mPollFlags |= (PR_POLL_WRITE | PR_POLL_EXCEPT);
}