Use only a single thread to download subtitles (so that we can keep track of the Download-Quota header and check it before each request)

This commit is contained in:
Reinhard Pointner 2016-04-08 22:59:18 +00:00
parent d5bacdcb23
commit 3f870c4a1f
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ class SubtitleAutoMatchDialog extends JDialog {
// start download
if (downloadQueue.size() > 0) {
downloadService = Executors.newFixedThreadPool(2);
downloadService = Executors.newSingleThreadExecutor();
for (DownloadTask downloadTask : downloadQueue) {
downloadTask.getSubtitleBean().setState(StateValue.PENDING);