Exemplo n.º 1
0
        void HandleAcceptError(Exception e)
        {
            state.SetError();

            try
            {
                listener.Close();
            }
            catch { }

            NPx.Log.Debug("Error attempting to accept connection.");
            Console.Error.WriteStackTrace(e);

            RaiseOnClose();
        }