public void TearDown() { WebRTC.WebRTC.Dispose(); signaling1.Stop(); signaling2.Stop(); m_Context = null; }
public void TearDown() { WebRTC.WebRTC.Dispose(); signaling1.Stop(); signaling2.Stop(); }
/// <summary> /// /// </summary> public void Dispose() { if (this._disposed) { return; } _runningResendCoroutine = false; _signaling.Stop(); _signaling.OnStart -= OnStart; _signaling.OnCreateConnection -= OnCreateConnection; _signaling.OnDestroyConnection -= OnDestroyConnection; _signaling.OnOffer -= OnOffer; _signaling.OnAnswer -= OnAnswer; _signaling.OnIceCandidate -= OnIceCandidate; s_list.Remove(this); if (s_list.Count == 0) { WebRTC.WebRTC.Dispose(); } this._disposed = true; GC.SuppressFinalize(this); }
/// <summary> /// /// </summary> public void Dispose() { if (this._disposed) { return; } _signaling.Stop(); s_list.Remove(this); if (s_list.Count == 0) { WebRTC.WebRTC.Dispose(); } this._disposed = true; GC.SuppressFinalize(this); }