private void processQueue()
    {
        for (int var1 = 0; var1 < this.threadedIOQueue.size(); ++var1)
        {
            IThreadedFileIO var2 = (IThreadedFileIO)this.threadedIOQueue.get(var1);
            boolean var3 = var2.writeNextIO();

            if (!var3)
            {
                this.threadedIOQueue.remove(var1--);
                ++this.savedIOCounter;
            }

            try
            {
                if (!this.isThreadWaiting)
                {
                    Thread.sleep(10L);
                }
                else
                {
                    Thread.sleep(0L);
                }
            }
            catch (InterruptedException var6)
            {
                var6.printStackTrace();
            }
        }

        if (this.threadedIOQueue.isEmpty())
        {
            try
            {
                Thread.sleep(25L);
            }
            catch (InterruptedException var5)
            {
                var5.printStackTrace();
            }
        }
    }