diff options
Diffstat (limited to 'libbuild2/context.ixx')
-rw-r--r-- | libbuild2/context.ixx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/context.ixx b/libbuild2/context.ixx index 7b2a405..6c8c428 100644 --- a/libbuild2/context.ixx +++ b/libbuild2/context.ixx @@ -56,7 +56,7 @@ namespace build2 inline void wait_guard:: wait () { - phase_unlock u (*ctx, phase, true /* delay */); + phase_unlock u (phase ? ctx : nullptr, true /* delay */); ctx->sched->wait (start_count, *task_count, u); task_count = nullptr; } |