File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
app/src/main/java/com/duckduckgo/app/job Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,18 @@ class AppConfigurationJobService : JobService() {
4141 Timber .i(" onStartJob" )
4242
4343 appConfigurationDownloader.downloadTask()
44- .subscribeOn(Schedulers .io())
45- .doOnComplete {
46- Timber .i(" Successfully downloaded all data" )
47- jobFinishedSuccessfully(params)
48- }
49- .doOnError({
50- Timber .w(" Failed to download all data" )
51- jobFinishedFailed(params)
52- })
53- .subscribeOn(Schedulers .io())
54- .subscribe({}, {
55- Timber .w(it, " Failed to download app configuration" )
56- })
44+ .subscribeOn(Schedulers .io())
45+ .onErrorComplete() {
46+ Timber .w(it, " Failed to download app configuration" )
47+ jobFinishedFailed(params)
48+ true
49+ }
50+ .doOnComplete {
51+ jobFinishedSuccessfully(params)
52+ Timber .i(" Successfully downloaded all data" )
53+ }
54+ .subscribeOn(Schedulers .io())
55+ .subscribe()
5756
5857 return true
5958 }
You can’t perform that action at this time.
0 commit comments