Cyberduck Mountain Duck CLI

Changeset 8304


Ignore:
Timestamp:
Jan 27, 2011 12:56:44 PM (7 years ago)
Author:
dkocher
Message:

Fix #5665.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/ch/cyberduck/core/Queue.java

    r8226 r8304  
    7575                log.info("Queuing:" + t);
    7676            }
    77             boolean offer = false;
    78             while(!offer || running.size() >= Preferences.instance().getInteger("queue.maxtransfers")) {
    79             // The maximum number of transfers is already reached
     77            while(running.size() >= Preferences.instance().getInteger("queue.maxtransfers")) {
     78                // The maximum number of transfers is already reached
    8079                if(t.isCanceled()) {
    8180                    break;
    8281                }
    8382                // Wait for transfer slot.
    84                 offer = overflow.offer(t);
     83                try {
     84                    overflow.put(t);
     85                }
     86                catch(InterruptedException e) {
     87                    log.error(e.getMessage());
     88                }
    8589            }
    8690            if(log.isInfoEnabled()) {
Note: See TracChangeset for help on using the changeset viewer.
swiss made software