Esempio n. 1
0
 public void TearDown()
 {
     WebRTC.WebRTC.Dispose();
     signaling1.Stop();
     signaling2.Stop();
     m_Context = null;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 4
0
        /// <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);
        }