diff --git a/java/xpcom/xpcom/bcXPCOMStub.cpp b/java/xpcom/xpcom/bcXPCOMStub.cpp index 8720f27bb7b0..a483b02607d2 100644 --- a/java/xpcom/xpcom/bcXPCOMStub.cpp +++ b/java/xpcom/xpcom/bcXPCOMStub.cpp @@ -126,7 +126,7 @@ void bcXPCOMStub::DispatchAndSaveThread(bcICall *call, nsIEventQueue *eventQueue } void bcXPCOMStub::Dispatch(bcICall *call) { PRLogModuleInfo *log = bcXPCOMLog::GetLog(); - if (_mOwningThread == NS_CurrentThread() + if (_mOwningThread == PR_CurrentThread() || NULL == (void*)owningEventQ) { DispatchAndSaveThread(call); } else {