public void Stop() { //Kill the update thread m_updateWorld = false; m_worldUpdateThread.Join(); //Stop listening for new connections m_tcp.Stop(); }