initWebRTC() can get multiple times - make sure to unset previous observers before re-adding
parent
d733bef269
commit
3410a182c5
|
|
@ -353,6 +353,7 @@ void LLWebRTCImpl::init()
|
||||||
//updateDevices();
|
//updateDevices();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLWebRTCImpl::terminate()
|
void LLWebRTCImpl::terminate()
|
||||||
|
|
|
||||||
|
|
@ -281,6 +281,7 @@ void LLWebRTCVoiceClient::initWebRTC()
|
||||||
llwebrtc::init(this);
|
llwebrtc::init(this);
|
||||||
|
|
||||||
mWebRTCDeviceInterface = llwebrtc::getDeviceInterface();
|
mWebRTCDeviceInterface = llwebrtc::getDeviceInterface();
|
||||||
|
mWebRTCDeviceInterface->unsetDevicesObserver(this); // <FS:Ansariel> initWebRTC() can get multiple times - make sure to unset previous observers before re-adding
|
||||||
mWebRTCDeviceInterface->setDevicesObserver(this);
|
mWebRTCDeviceInterface->setDevicesObserver(this);
|
||||||
mMainQueue = LL::WorkQueue::getInstance("mainloop");
|
mMainQueue = LL::WorkQueue::getInstance("mainloop");
|
||||||
refreshDeviceLists();
|
refreshDeviceLists();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue