mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 824263 - Shutdown: PeerConnectionMedia disconnect_all() + peer_ctx cleanup. r=jesup,ekr
This commit is contained in:
parent
311309b087
commit
30b1a7cbaf
@ -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…
x
Reference in New Issue
Block a user