Do not shut down the executor before the service is destroyed

This commit is contained in:
ByteHamster 2022-03-22 20:41:07 +01:00
parent 3d54aa7064
commit 905f5e5f9a
1 changed files with 0 additions and 1 deletions

View File

@ -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();