Bug 807012 - Signaling - reorder initiialization of CallControlManagerImpl r=jesup

This commit is contained in:
Ethan Hugg 2012-12-17 11:01:32 -08:00
parent 4fa304826b
commit 0c7d43972a

View File

@ -104,8 +104,8 @@ nsresult PeerConnectionCtx::Initialize() {
if (!mCCM->startSDPMode())
return NS_ERROR_FAILURE;
mCCM->addCCObserver(this);
mDevice = mCCM->getActiveDevice();
mCCM->addCCObserver(this);
NS_ENSURE_TRUE(mDevice.get(), NS_ERROR_FAILURE);
ChangeSipccState(PeerConnectionImpl::kStarting);
return NS_OK;