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:
@@ -236,7 +236,8 @@ JobQueue::_RemoveDependantJobsOf(BJob* job)
|
|||||||
} catch (...) {
|
} catch (...) {
|
||||||
}
|
}
|
||||||
_RemoveDependantJobsOf(dependantJob);
|
_RemoveDependantJobsOf(dependantJob);
|
||||||
delete job;
|
dependantJob->RemoveDependency(job);
|
||||||
|
delete dependantJob;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user