public void Dispose() { //if(m_client.IsConnected) // m_client.CloseSocket(); m_client.EmitLogin(null); if (IsConnected) { IsConnected = false; } m_client = null; }