package kit: fix JobQueue::_RemoveDependantJobsOf()
* Delete the right job (the removed dependant job). * Sever the depencency link between the jobs or the next iteration of the loop would process the same job again.
This commit is contained in:
parent
ab9a117918
commit
c33daf26ea
@ -236,7 +236,8 @@ JobQueue::_RemoveDependantJobsOf(BJob* job)
|
||||
} catch (...) {
|
||||
}
|
||||
_RemoveDependantJobsOf(dependantJob);
|
||||
delete job;
|
||||
dependantJob->RemoveDependency(job);
|
||||
delete dependantJob;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user