コード例 #1
0
ファイル: ClientsManager.cs プロジェクト: nhinze/rhodes
            public void unregisterClient(string clientGuid)
            {
                Logger.Write("[manager] unregister new client: " + clientGuid);

                if (m_clients != null && m_clients.ContainsKey(clientGuid))
                {
                    Logger.Write("[manager] start unregister: " + clientGuid);

                    ClientThread newClient = m_clients[clientGuid];

                    newClient.stopThread();
                    newClient.joinThread();
                    newClient.closeQueues();

                    m_clients.Remove(clientGuid);
                }
                else
                {
                    Logger.Write("[manager] unregister new client repeatedly");
                }
            }