launch_daemon: Fixed Alexander's logic mixup.
* The warning in GCC 4 is just that, a warning. It doesn't mean the previous version was wrong :-)
This commit is contained in:
@@ -1011,9 +1011,9 @@ LaunchDaemon::_LaunchJobs(Target* target, bool forceNow)
|
|||||||
void
|
void
|
||||||
LaunchDaemon::_LaunchJob(Job* job, bool forceNow)
|
LaunchDaemon::_LaunchJob(Job* job, bool forceNow)
|
||||||
{
|
{
|
||||||
if ((job == NULL || job->IsLaunched() || !forceNow)
|
if (job == NULL || job->IsLaunched() || (!forceNow
|
||||||
&& (!job->EventHasTriggered() || !job->CheckCondition(*this)
|
&& (!job->EventHasTriggered() || !job->CheckCondition(*this)
|
||||||
|| Events::TriggerDemand(job->Event()))) {
|
|| Events::TriggerDemand(job->Event())))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user