public void Quit() { connected = false; if (reqSock != null) { reqSock.Disconnect(ConnectingAddress); reqSock.Close(); } if (Pool != null) { Pool.QuitMsgPool(); Pool = null; } }
public void Quit() { proxyReady = false; if (pool != null) { pool.QuitMsgPool(); } if (proxyServer != null) { proxyServer.Quit(); } Thread.Sleep(10); if (CliSub != null) { CliSub.Quit(); } Thread.Sleep(10); if (monitor != null) { monitor.Quit(); } }