Bug 1018372 - Check aThread against mThread in PeerConnectionImpl constructor r=jesup

This commit is contained in:
Adam Roach [:abr] 2014-06-06 15:56:47 -05:00
parent a6aa98ac0e
commit 561bcea3c7

View File

@ -730,6 +730,7 @@ PeerConnectionImpl::Initialize(PeerConnectionObserver& aObserver,
MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(aThread);
mThread = do_QueryInterface(aThread);
CheckThread();
mPCObserver = do_GetWeakReference(&aObserver);