mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-25 16:23:54 +01:00
Merge pull request #3678 from ByteHamster/fix-downloadservice-deadlock
Fix DownloadService deadlock
This commit is contained in:
commit
395dd891c4
@ -260,7 +260,6 @@ public class DownloadService extends Service {
|
||||
removeDownload(downloader);
|
||||
numberOfDownloads.decrementAndGet();
|
||||
queryDownloadsAsync();
|
||||
|
||||
});
|
||||
} else {
|
||||
handleFailedDownload(downloader);
|
||||
@ -270,8 +269,10 @@ public class DownloadService extends Service {
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
Log.e(TAG, "DownloadCompletionThread was interrupted");
|
||||
return;
|
||||
} catch (ExecutionException e) {
|
||||
Log.e(TAG, "ExecutionException in DownloadCompletionThread: " + e.getMessage());
|
||||
return;
|
||||
}
|
||||
}
|
||||
Log.d(TAG, "End of downloadCompletionThread");
|
||||
|
Loading…
Reference in New Issue
Block a user