diff --git a/app/src/main/java/io/legado/app/service/DownloadService.kt b/app/src/main/java/io/legado/app/service/DownloadService.kt index 53868a977..b9f4f82fe 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -69,9 +69,7 @@ class DownloadService : BaseService() { IntentAction.stop -> { val downloadId = intent.getLongExtra("downloadId", 0) downloads.remove(downloadId) - if (downloads.isEmpty()) { - stopSelf() - } + stopSelf() } } return super.onStartCommand(intent, flags, startId)