Example #1
0
        public void Shutdown()
        {
            if (!IsConnected())
            {
                return;
            }

            if (_clientNetwork == null)
            {
                return;
            }

            try {
                SendPacket(new PacketWorkerDisconnect("client exit"));
            } catch {
                ;
            } finally {
                _clientNetwork = null;
            }
        }
Example #2
0
 public GridClientNetworkHandler(GridClientNetwork network, GridClientNetworkSystem netSystem)
 {
     _network   = network;
     _netSystem = netSystem;
     _isLogged  = false;
 }