From 47c961939288630a6e913338326680441a5e5693 Mon Sep 17 00:00:00 2001 From: Chris Foster Date: Sun, 7 Nov 2021 08:51:22 +1000 Subject: [PATCH] Fix undefined current task variable from #42750 --- base/condition.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/condition.jl b/base/condition.jl index d5f2277eac863..ec091d0f849c1 100644 --- a/base/condition.jl +++ b/base/condition.jl @@ -89,7 +89,7 @@ function _wait2(c::GenericCondition, waiter::Task) # the parent task. If the parent (current_task) is not sticky we must # set it to be sticky. # XXX: Ideally we would be able to unset this - ct.sticky = true + current_task().sticky = true tid = Threads.threadid() ccall(:jl_set_task_tid, Cvoid, (Any, Cint), waiter, tid-1) end