Do not shut down the executor before the service is destroyed
This commit is contained in:
parent
3d54aa7064
commit
905f5e5f9a
|
@ -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