Exemple #1
0
        public override void run()
        {
            lock (NetworkManager.threadSyncObject)
            {
                NetworkManager.numReadThreads++;
            }
            while (NetworkManager.isRunning(netManager) && !NetworkManager.isServerTerminating(netManager))
            {
                NetworkManager.readNetworkPacket(netManager);
                try
                {
                    sleep(0L);
                }
                catch (InterruptedException interruptedexception)
                {
                }
            }
            lock (NetworkManager.threadSyncObject)
            {
                NetworkManager.numReadThreads--;
            }
//        break MISSING_BLOCK_LABEL_123;
//        Exception exception2;
//        exception2;
            lock (NetworkManager.threadSyncObject)
            {
                NetworkManager.numReadThreads--;
            }
//        throw exception2;
        }
 public override void run()
 {
     try
     {
         sleep(2000L);
         if (NetworkManager.isRunning(netManager))
         {
             NetworkManager.getWriteThread(netManager).interrupt();
             netManager.networkShutdown("disconnect.closed", new object[0]);
         }
     }
     catch (Exception exception)
     {
         exception.printStackTrace();
     }
 }
        public override void run()
        {
            lock (NetworkManager.threadSyncObject)
            {
                NetworkManager.numWriteThreads++;
            }
            for (; NetworkManager.isRunning(netManager); NetworkManager.sendNetworkPacket(netManager))
            {
            }
            lock (NetworkManager.threadSyncObject)
            {
                NetworkManager.numWriteThreads--;
            }
//        break MISSING_BLOCK_LABEL_105;
//        Exception exception2;
//        exception2;
            lock (NetworkManager.threadSyncObject)
            {
                NetworkManager.numWriteThreads--;
            }
//        throw exception2;
        }