Skip to content

Commit

Permalink
correctly cancel download when internet connection is lost (fixes #1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed May 10, 2020
1 parent 33e856f commit 9b61076
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ class QuestDownloadService : SingleIntentService(TAG) {
isPriorityDownload = intent.hasExtra(ARG_IS_PRIORITY)
isDownloading = true
dl.download(tiles, maxQuestTypes, cancelState)
isPriorityDownload = false
isDownloading = false
} catch (e: Exception) {
Log.e(TAG, "Unable to download quests", e)
progressListenerRelay.onError(e)
}
isPriorityDownload = false
isDownloading = false
}

/** Public interface to classes that are bound to this service */
Expand Down

0 comments on commit 9b61076

Please sign in to comment.