mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Ensure a job has a context before we fail it.
This commit is contained in:
@@ -130,6 +130,7 @@ class JobController {
|
||||
if (jobTracker.haveAnyFailed(allDependsOn)) {
|
||||
Log.w(TAG, "This job depends on a job that failed! Failing this job immediately.");
|
||||
List<Job> dependents = onFailure(job);
|
||||
job.setContext(application);
|
||||
job.onFailure();
|
||||
Stream.of(dependents).forEach(Job::onFailure);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user