Ejemplo n.º 1
0
    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);
        }
Ejemplo n.º 3
0
 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;
     }
 }
Ejemplo n.º 4
0
 void OnDisable()
 {
     client.Close();
 }
Ejemplo n.º 5
0
 public void OnDestroy()
 {
     c.Close();
 }
Ejemplo n.º 6
0
Archivo: Plane.cs Proyecto: kdada/plane
 void OnDestory()
 {
     client.Close();
 }