public void Close() { mUpstream.Destroy(); // Kill the listener mListener.Close(); // Kill the update thread mUpdateThread.Abort(); // Close all clients foreach (Client c in mClients) { c.Close(); } // Close the event log mEventLog.Close(); }
void Form1_FormClosing(object sender, FormClosingEventArgs e) { timer1.Enabled = false; mTheMan.Close(); mTheMan = null; }