DownloadService was not always counting queued downloads
This commit is contained in:
parent
88e544a6e6
commit
c4941a3c50
|
@ -170,7 +170,8 @@ public class DownloadService extends Service {
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
downloadExecutor = Executors.newFixedThreadPool(NUM_PARALLEL_DOWNLOADS, new ThreadFactory() {
|
downloadExecutor = Executors.newFixedThreadPool(NUM_PARALLEL_DOWNLOADS,
|
||||||
|
new ThreadFactory() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Thread newThread(Runnable r) {
|
public Thread newThread(Runnable r) {
|
||||||
|
@ -297,9 +298,8 @@ public class DownloadService extends Service {
|
||||||
} else {
|
} else {
|
||||||
Log.e(TAG,
|
Log.e(TAG,
|
||||||
"Could not find feedfile in download requester when trying to enqueue new download");
|
"Could not find feedfile in download requester when trying to enqueue new download");
|
||||||
queryDownloads();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
queryDownloads();
|
||||||
}
|
}
|
||||||
|
|
||||||
private BroadcastReceiver downloadQueued = new BroadcastReceiver() {
|
private BroadcastReceiver downloadQueued = new BroadcastReceiver() {
|
||||||
|
|
Loading…
Reference in New Issue