Merge pull request #5811 from ByteHamster/shutdown-executor

Do not shut down the executor before the service is destroyed
This commit is contained in:
ByteHamster 2022-03-25 22:29:12 +01:00 committed by GitHub
commit 819a71fcea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -656,7 +656,6 @@ public class DownloadService extends Service {
if (notificationUpdater != null) {
notificationUpdater.run();
}
downloadEnqueueExecutor.shutdown(); // Do not accept new downloads
cancelNotificationUpdater();
ServiceCompat.stopForeground(this, ServiceCompat.STOP_FOREGROUND_REMOVE);
stopSelf();