mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: [webrtc] Hold a self-ref on behalf of sigslot, just in case. (b73e47ce)
This commit is contained in:
@@ -3471,7 +3471,15 @@ static bool isFailed(PCImplIceConnectionState state) {
|
||||
void PeerConnectionImpl::IceConnectionStateChange(
|
||||
NrIceCtx* ctx,
|
||||
NrIceCtx::ConnectionState state) {
|
||||
PC_AUTO_ENTER_API_CALL_VOID_RETURN(false);
|
||||
MOZ_ASSERT(NS_IsMainThread(), "Wrong thread");
|
||||
|
||||
// Let connection be the RTCPeerConnection object associated with this ICE
|
||||
// Agent.
|
||||
RefPtr<PeerConnectionImpl> connection(this);
|
||||
|
||||
if (IsClosed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
CSFLogDebug(logTag, "%s", __FUNCTION__);
|
||||
|
||||
@@ -3569,7 +3577,12 @@ PeerConnectionImpl::IceGatheringStateChange(
|
||||
NrIceCtx* ctx,
|
||||
NrIceCtx::GatheringState state)
|
||||
{
|
||||
PC_AUTO_ENTER_API_CALL_VOID_RETURN(false);
|
||||
MOZ_ASSERT(NS_IsMainThread(), "Wrong thread");
|
||||
RefPtr<PeerConnectionImpl> kungFuDeathGrip(this);
|
||||
|
||||
if (IsClosed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
CSFLogDebug(logTag, "%s", __FUNCTION__);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user