Skip to content

Commit 5b365e5

Browse files
kpamnanyKristofferC
authored and
KristofferC
committed
Fix a bug accidentally introduced by 43453 (#46816)
1 parent b79226e commit 5b365e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/partr.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,10 @@ JL_DLLEXPORT int jl_enqueue_task(jl_task_t *task)
312312
char failed;
313313
if (multiq_insert(task, task->prio) == -1)
314314
failed = 1;
315-
failed = 0;
316-
JL_PROBE_RT_TASKQ_INSERT(jl_current_task->ptls, task);
315+
else {
316+
failed = 0;
317+
JL_PROBE_RT_TASKQ_INSERT(jl_current_task->ptls, task);
318+
}
317319
return failed;
318320
}
319321

0 commit comments

Comments
 (0)