public void Stop() { if (sendStop != null) { sendStop.Set(); } if (streamClient != null) { streamClient.Close(); } }
/// <summary> /// Stop the DataServer /// </summary> public void Stop() { if (sendStop != null) { sendStop.Set(); } if (streamClient != null) { streamClient.Close(); } if (Buffer != null) { Buffer.Stop(); } log.Info("DataServer : " + Hostname + " Stopped"); }