private void InternalClose() { try { MonitoringSocket.Disconnect(Endpoint); } catch (Exception) {} finally { IsRunning = false; m_isStoppedEvent.Set(); } }
private void InternalClose() { m_isStoppedEvent.Set(); IsRunning = false; MonitoringSocket.Disconnect(Endpoint); }