// stop the worker thread public void stop() { if (workerThread != null && workerThread.IsAlive) { this.workerThread.Abort(); } if (socket != null && socket.connected) { socket.disconnect(); } }
// stop the worker thread public void stop() { if (workerThread != null && workerThread.IsAlive) { this.workerThread.Abort(); } if (socket != null && socket.connected) { socket.disconnect(); } }