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) {
|
||||
notificationUpdater.run();
|
||||
}
|
||||
downloadEnqueueExecutor.shutdown(); // Do not accept new downloads
|
||||
cancelNotificationUpdater();
|
||||
ServiceCompat.stopForeground(this, ServiceCompat.STOP_FOREGROUND_REMOVE);
|
||||
stopSelf();
|
||||
|
|
Loading…
Reference in New Issue