Merge pull request #5811 from ByteHamster/shutdown-executor
Do not shut down the executor before the service is destroyed
This commit is contained in:
commit
819a71fcea
|
@ -656,7 +656,6 @@ public class DownloadService extends Service {
|
||||||
if (notificationUpdater != null) {
|
if (notificationUpdater != null) {
|
||||||
notificationUpdater.run();
|
notificationUpdater.run();
|
||||||
}
|
}
|
||||||
downloadEnqueueExecutor.shutdown(); // Do not accept new downloads
|
|
||||||
cancelNotificationUpdater();
|
cancelNotificationUpdater();
|
||||||
ServiceCompat.stopForeground(this, ServiceCompat.STOP_FOREGROUND_REMOVE);
|
ServiceCompat.stopForeground(this, ServiceCompat.STOP_FOREGROUND_REMOVE);
|
||||||
stopSelf();
|
stopSelf();
|
||||||
|
|
Loading…
Reference in New Issue