aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 4d04c4fb9..9cdeb7ab8 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -339,7 +339,7 @@ retry:
args[i] = 0;
thread_t* th = schedule_call(n, call_index++, call_num, num_args, args, input_pos);
- if (collide && (n % 2)) {
+ if (collide && (call_index % 2) == 0) {
// Don't wait for every other call.
// We already have results from the previous execution.
}