public void Quit() { ClientPool.Clear(); stopwatch.Stop(); if (CharactorPool != null) { CharactorPool.HostQuit(); } if (task != null) { task.Enabled = false; } if (hbServer != null) { hbServer.Quit(); } }