kopia lustrzana https://github.com/ryukoposting/Signal-Android
Ensure a job has a context before we fail it.
rodzic
cc9be7b61e
commit
dda0e0393e
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue