Ensure a job has a context before we fail it.

fork-5.53.8
Greyson Parrelli 2021-02-11 11:43:21 -05:00
rodzic cc9be7b61e
commit dda0e0393e
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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;