bug 1206771 - fix reentrantFlag compiler warning on >= beta r=jduell

This commit is contained in:
Patrick McManus 2015-09-21 13:22:23 -04:00
parent f78dc55625
commit 7479d7b332

View File

@ -792,6 +792,8 @@ nsHttpTransaction::WriteSegments(nsAHttpSegmentWriter *writer,
uint32_t count, uint32_t *countWritten)
{
static bool reentrantFlag = false;
LOG(("nsHttpTransaction::WriteSegments %p reentrantFlag=%d",
this, reentrantFlag));
MOZ_DIAGNOSTIC_ASSERT(!reentrantFlag);
reentrantFlag = true;
MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread);