Esempio n. 1
0
        /// <summary>
        /// Close the PipeTransport.
        /// </summary>
        public override async Task CloseAsync()
        {
            if (Closed)
            {
                return;
            }

            await CloseLock.WaitAsync();

            try
            {
                if (Closed)
                {
                    return;
                }

                if (SctpState.HasValue)
                {
                    SctpState = Mediasoup.SctpState.Closed;
                }

                await base.CloseAsync();
            }
            finally
            {
                CloseLock.Set();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Router was closed.
        /// </summary>
        public override async Task RouterClosedAsync()
        {
            if (Closed)
            {
                return;
            }

            await CloseLock.WaitAsync();

            try
            {
                if (Closed)
                {
                    return;
                }

                await base.RouterClosedAsync();
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "RouterClosedAsync()");
            }
            finally
            {
                CloseLock.Set();
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Close the PipeTransport.
        /// </summary>
        public override async Task CloseAsync()
        {
            if (Closed)
            {
                return;
            }

            await CloseLock.WaitAsync();

            try
            {
                if (Closed)
                {
                    return;
                }

                if (SctpState.HasValue)
                {
                    SctpState = Mediasoup.SctpState.Closed;
                }

                await base.CloseAsync();
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "CloseAsync()");
            }
            finally
            {
                CloseLock.Set();
            }
        }
        /// <summary>
        /// Router was closed.
        /// </summary>
        public override async Task RouterClosedAsync()
        {
            if (Closed)
            {
                return;
            }

            await CloseLock.WaitAsync();

            try
            {
                if (Closed)
                {
                    return;
                }

                IceState         = IceState.Closed;
                IceSelectedTuple = null;
                DtlsState        = DtlsState.Closed;

                if (SctpState.HasValue)
                {
                    SctpState = TubumuMeeting.Mediasoup.SctpState.Closed;
                }

                await base.RouterClosedAsync();
            }
            finally
            {
                CloseLock.Set();
            }
        }
        /// <summary>
        /// Router was closed.
        /// </summary>
        public override async Task RouterClosedAsync()
        {
            if (Closed)
            {
                return;
            }

            await CloseLock.WaitAsync();

            try
            {
                if (Closed)
                {
                    return;
                }

                if (SctpState.HasValue)
                {
                    SctpState = TubumuMeeting.Mediasoup.SctpState.Closed;
                }

                await base.RouterClosedAsync();
            }
            finally
            {
                CloseLock.Set();
            }
        }
Esempio n. 6
0
        /// <summary>
        /// Router was closed.
        /// </summary>
        public override async Task RouterClosedAsync()
        {
            if (Closed)
            {
                return;
            }

            await CloseLock.WaitAsync();

            try
            {
                if (Closed)
                {
                    return;
                }

                await base.RouterClosedAsync();
            }
            finally
            {
                CloseLock.Set();
            }
        }
Esempio n. 7
0
        /// <summary>
        /// Router was closed.
        /// </summary>
        public override async Task RouterClosedAsync()
        {
            if (Closed)
            {
                return;
            }

            await CloseLock.WaitAsync();

            try
            {
                if (Closed)
                {
                    return;
                }

                IceState         = IceState.Closed;
                IceSelectedTuple = null;
                DtlsState        = DtlsState.Closed;

                if (SctpState.HasValue)
                {
                    SctpState = Tubumu.Mediasoup.SctpState.Closed;
                }

                await base.RouterClosedAsync();
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "RouterClosedAsync()");
            }
            finally
            {
                CloseLock.Set();
            }
        }