DownloadService was not always counting queued downloads

This commit is contained in:
daniel oeh 2012-08-18 16:18:33 +02:00
parent 88e544a6e6
commit c4941a3c50
1 changed files with 10 additions and 10 deletions

View File

@ -170,7 +170,8 @@ public class DownloadService extends Service {
return t;
}
});
downloadExecutor = Executors.newFixedThreadPool(NUM_PARALLEL_DOWNLOADS, new ThreadFactory() {
downloadExecutor = Executors.newFixedThreadPool(NUM_PARALLEL_DOWNLOADS,
new ThreadFactory() {
@Override
public Thread newThread(Runnable r) {
@ -297,9 +298,8 @@ public class DownloadService extends Service {
} else {
Log.e(TAG,
"Could not find feedfile in download requester when trying to enqueue new download");
queryDownloads();
}
queryDownloads();
}
private BroadcastReceiver downloadQueued = new BroadcastReceiver() {