summaryrefslogtreecommitdiff
path: root/netwerk/base/nsSocketTransport2.h
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/base/nsSocketTransport2.h')
-rw-r--r--netwerk/base/nsSocketTransport2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/netwerk/base/nsSocketTransport2.h b/netwerk/base/nsSocketTransport2.h
index a61e432b48..c36d46c04e 100644
--- a/netwerk/base/nsSocketTransport2.h
+++ b/netwerk/base/nsSocketTransport2.h
@@ -351,13 +351,13 @@ private:
void OnMsgInputPending()
{
- MOZ_ASSERT(OnSocketThread(), "not on socket thread");
+ NS_ASSERTION(PR_GetCurrentThread() == gSocketThread, "not on socket thread");
if (mState == STATE_TRANSFERRING)
mPollFlags |= (PR_POLL_READ | PR_POLL_EXCEPT);
}
void OnMsgOutputPending()
{
- MOZ_ASSERT(OnSocketThread(), "not on socket thread");
+ NS_ASSERTION(PR_GetCurrentThread() == gSocketThread, "not on socket thread");
if (mState == STATE_TRANSFERRING)
mPollFlags |= (PR_POLL_WRITE | PR_POLL_EXCEPT);
}