mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 824263 - Shutdown: PeerConnectionMedia disconnect_all() + peer_ctx cleanup. r=jesup,ekr
This commit is contained in:
parent
f9fc54a32b
commit
1769b4d97e
@ -291,7 +291,7 @@ static void nr_ice_peer_ctx_destroy_cb(NR_SOCKET s, int how, void *cb_arg)
|
||||
STAILQ_REMOVE(&pctx->peer_streams,str1,nr_ice_media_stream_,entry);
|
||||
nr_ice_media_stream_destroy(&str1);
|
||||
}
|
||||
|
||||
STAILQ_REMOVE(&pctx->ctx->peers, pctx, nr_ice_peer_ctx_, entry);
|
||||
RFREE(pctx);
|
||||
}
|
||||
|
||||
|
@ -245,8 +245,7 @@ PeerConnectionMedia::DisconnectMediaStreams()
|
||||
void
|
||||
PeerConnectionMedia::ShutdownMediaTransport()
|
||||
{
|
||||
mIceCtx->SignalCompleted.disconnect(this);
|
||||
mIceCtx->SignalGatheringCompleted.disconnect(this);
|
||||
disconnect_all();
|
||||
mTransportFlows.clear();
|
||||
mIceStreams.clear();
|
||||
mIceCtx = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user