public void Terminate() { Utility.Log("NetThread terminated"); if (!m_terminate) { m_terminate = true; if (null != m_loginClient) { m_loginClient.Close(); m_loginClient = null; } if (null != m_gateClient) { m_gateClient.Close(); m_gateClient = null; } if (null != m_crossClient) { m_crossClient.Close(); m_crossClient = null; } m_thread.Join(); m_thread = null; } }
public Boolean Disconnect() { if (_client.IsConnected()) { _client.Close(); } SetState(ConnectionState.NONE); return(true); }
public void Terminate() { if (!m_terminate) { m_terminate = true; if (null != m_loginClient) { m_loginClient.Close(); m_loginClient = null; } if (null != m_gateClient) { m_gateClient.Close(); m_gateClient = null; } if (null != m_crossClient) { m_crossClient.Close(); m_crossClient = null; } m_thread.Join(); m_thread = null; } }
void OnDisable() { client.Close(); }
public void OnDestroy() { c.Close(); }
void OnDestory() { client.Close(); }