Skip to content

Commit

Permalink
Merge branch 'hotfix/4.0.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
subsymbolic committed Jan 23, 2018
2 parents 88014b8 + 461d194 commit 0a33187
Showing 1 changed file with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,14 @@ class AppConfigurationJobService : JobService() {
Timber.i("onStartJob")

appConfigurationDownloader.downloadTask()
.subscribeOn(Schedulers.io())
.doOnComplete {
Timber.i("Successfully downloaded all data")
jobFinishedSuccessfully(params)
}
.doOnError({
Timber.w("Failed to download all data")
jobFinishedFailed(params)
})
.subscribeOn(Schedulers.io())
.subscribe({}, {
Timber.w(it, "Failed to download app configuration")
})
.subscribeOn(Schedulers.io())
.subscribe({
Timber.i("Successfully downloaded all data")
jobFinishedSuccessfully(params)
}, {
Timber.w(it, "Failed to download app configuration")
jobFinishedFailed(params)
})

return true
}
Expand Down

0 comments on commit 0a33187

Please sign in to comment.