Fixed crash in download service
This commit is contained in:
parent
66c91f9962
commit
4bda044472
@ -217,7 +217,9 @@ public class DownloadService extends Service {
|
|||||||
syncExecutor.shutdown();
|
syncExecutor.shutdown();
|
||||||
schedExecutor.shutdown();
|
schedExecutor.shutdown();
|
||||||
cancelNotificationUpdater();
|
cancelNotificationUpdater();
|
||||||
downloadPostFuture.cancel(true);
|
if (downloadPostFuture != null) {
|
||||||
|
downloadPostFuture.cancel(true);
|
||||||
|
}
|
||||||
unregisterReceiver(cancelDownloadReceiver);
|
unregisterReceiver(cancelDownloadReceiver);
|
||||||
|
|
||||||
// if this was the initial gpodder sync, i.e. we just synced the feeds successfully,
|
// if this was the initial gpodder sync, i.e. we just synced the feeds successfully,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user