From 739e7bdb661214969652d066af00e16b10d96ddb Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 22 Jul 2015 16:37:16 -0500 Subject: [PATCH] launch_daemon: Fix missing logic parentheses * These are not superfluous on gcc4+ :-) --- src/servers/launch/LaunchDaemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/launch/LaunchDaemon.cpp b/src/servers/launch/LaunchDaemon.cpp index 2d59a4ce69..7bb4e1823d 100644 --- a/src/servers/launch/LaunchDaemon.cpp +++ b/src/servers/launch/LaunchDaemon.cpp @@ -1011,7 +1011,7 @@ LaunchDaemon::_LaunchJobs(Target* target, bool forceNow) void LaunchDaemon::_LaunchJob(Job* job, bool forceNow) { - if (job == NULL || job->IsLaunched() || !forceNow + if ((job == NULL || job->IsLaunched() || !forceNow) && (!job->EventHasTriggered() || !job->CheckCondition(*this) || Events::TriggerDemand(job->Event()))) { return;