Skip to content

Commit 47c9619

Browse files
committed
Fix undefined current task variable from #42750
1 parent 653cad3 commit 47c9619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/condition.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function _wait2(c::GenericCondition, waiter::Task)
8989
# the parent task. If the parent (current_task) is not sticky we must
9090
# set it to be sticky.
9191
# XXX: Ideally we would be able to unset this
92-
ct.sticky = true
92+
current_task().sticky = true
9393
tid = Threads.threadid()
9494
ccall(:jl_set_task_tid, Cvoid, (Any, Cint), waiter, tid-1)
9595
end

0 commit comments

Comments
 (0)