public override void SocketOnError(object sender, Exception ex) { base.SocketOnError(sender, ex); if (m_StreamStarted && !m_CleanUpDone) CleanupSession(); if (OnSocketError != null) OnSocketError(this, ex); } #endregion