initWebRTC() can get multiple times - make sure to unset previous observers before re-adding

master
Ansariel 2025-10-18 13:32:44 +02:00
parent d733bef269
commit 3410a182c5
2 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,7 @@ void LLWebRTCImpl::init()
//updateDevices();
}
});
}
void LLWebRTCImpl::terminate()

View File

@ -281,6 +281,7 @@ void LLWebRTCVoiceClient::initWebRTC()
llwebrtc::init(this);
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);
mMainQueue = LL::WorkQueue::getInstance("mainloop");
refreshDeviceLists();