Bug 824263 - Shutdown: PeerConnectionMedia disconnect_all() + peer_ctx cleanup. r=jesup,ekr

This commit is contained in:
Jan-Ivar Bruaroey 2012-12-27 17:38:45 -05:00
parent f9fc54a32b
commit 1769b4d97e
2 changed files with 2 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;