summaryrefslogtreecommitdiff
path: root/netwerk
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-10-03 20:00:02 +0000
committerMoonchild <moonchild@palemoon.org>2022-10-04 16:32:25 +0000
commit2dc264047edad770c1ac4513a1e7844ef4365fa7 (patch)
treed752598a35740362fbdd07f507d4865d7be82006 /netwerk
parent6d5b934dc08792d2833fefae6acddaf8f3bfd02b (diff)
downloaduxp-2dc264047edad770c1ac4513a1e7844ef4365fa7.tar.gz
Fix some debug assertions.
refactored code porting in assertions causing debug build failures.
Diffstat (limited to 'netwerk')
-rw-r--r--netwerk/base/nsSocketTransport2.h4
-rw-r--r--netwerk/protocol/http/nsHttpConnectionMgr.cpp2
2 files changed, 3 insertions, 3 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);
}
diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.cpp b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
index 70d051f747..f23d9e9e9a 100644
--- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp
+++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
@@ -2630,7 +2630,7 @@ nsHttpConnectionMgr::OnMsgCompleteUpgrade(int32_t, ARefBase *param)
void
nsHttpConnectionMgr::OnMsgUpdateParam(int32_t inParam, ARefBase *)
{
- MOZ_ASSERT(OnSocketThread(), "not on socket thread");
+ NS_ASSERTION(PR_GetCurrentThread() == gSocketThread, "not on socket thread");
uint32_t param = static_cast<uint32_t>(inParam);
uint16_t name = ((param) & 0xFFFF0000) >> 16;
uint16_t value = param & 0x0000FFFF;