Microsoft.Protocols.TestManager.Kernel.PipeSinkServer.CleanUnusedListener C# (CSharp) Method

CleanUnusedListener() private static method

private static CleanUnusedListener ( ) : void
return void
        private static void CleanUnusedListener()
        {
            if(listeners != null && listeners.Count > 0)
            {
                foreach (var listener in listeners)
                    listener.Stop();

                listeners.Clear();
            }
        }