internal void RemoveChat(ref WebChat chat) { lock (m_Chats) { //Empty the chat chat.Empty(); //Remove the existing chat m_Chats.Remove(chat.RoomId); chat = null; } }