pull/1344/head
gedoor 3 years ago
parent 73f5285c09
commit 2349ea3de4
  1. 2
      app/src/main/java/io/legado/app/service/DownloadService.kt

@ -76,9 +76,11 @@ class DownloadService : BaseService() {
if (downloadId > 0) { if (downloadId > 0) {
downloads[downloadId] = fileName downloads[downloadId] = fileName
queryState() queryState()
if (upStateJob == null) {
checkDownloadState() checkDownloadState()
} }
} }
}
private fun checkDownloadState() { private fun checkDownloadState() {
upStateJob?.cancel() upStateJob?.cancel()

Loading…
Cancel
Save