@Override public void run() { try { download(rds, path); synchronized (queues) { ok(queues.get(path) .toArray(EMPTY_LISTENER), path); } } catch (Exception e) { synchronized (queues) { fail(e, queues.get(path) .toArray(EMPTY_LISTENER), path); } } finally { synchronized (queues) { queues.remove(path); } limitDownloads.release(); } } });
public void run() { try { download(rds, path); synchronized (queues) { ok(queues.get(path).toArray(EMPTY_LISTENER), path); } } catch (Exception e) { synchronized (queues) { fail(e, queues.get(path).toArray(EMPTY_LISTENER), path); } } finally { synchronized (queues) { queues.remove(path); } limitDownloads.release(); } } });
public void run() { try { download(rds, path); synchronized (queues) { ok(queues.get(path).toArray(EMPTY_LISTENER), path); } } catch (Exception e) { synchronized (queues) { fail(e, queues.get(path).toArray(EMPTY_LISTENER), path); } } finally { synchronized (queues) { queues.remove(path); } limitDownloads.release(); } } });
@Override public void run() { try { download(rds, path); synchronized (queues) { ok(queues.get(path) .toArray(EMPTY_LISTENER), path); } } catch (Exception e) { synchronized (queues) { fail(e, queues.get(path) .toArray(EMPTY_LISTENER), path); } } finally { synchronized (queues) { queues.remove(path); } limitDownloads.release(); } } });
download(rds, path); return path;
download(rds, path); return path;
download(rds, path); return path;
download(rds, path); return path;