HappyFunTimes.HFTSocket.OnError C# (CSharp) Method

OnError() protected method

protected OnError ( ErrorEventArgs e ) : void
e WebSocketSharp.ErrorEventArgs
return void
        protected override void OnError(ErrorEventArgs e)
        {
            log_.Error("error: " + e.ToString() + ": " + e.Message);
            if (!closed_)
            {
                try
                {
                    Close();
                }
                catch (System.Exception)
                {
                }
            }
            EventHandler<ErrorEventArgs> handler = OnErrorEvent;
            if (handler != null)
            {
                handler(this, e);
            }
        }