Stop() public method

public Stop ( ) : void
return void
Ejemplo n.º 1
0
        private void StopListenThread()
        {
            try
            {
                if (m_listener != null)
                {
                    if (connected)
                    {
                        TVServerConnection.CloseAll();
                    }

                    Log.Info("TVServerKodi: Stop listening");

                    m_listener.Stop();
                    m_listener = null;
                }
            }
            catch
            {
                Log.Error("TVServerKodi: StopListenThread failed!");
                Console.WriteLine("StopListenThread failed!");
            }
        }