Skip to content

Commit 87cf1a7

Browse files
committed
Fixing wrong resume condition of idling thread
1 parent ad16a05 commit 87cf1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sitelib/util/concurrent/fork-join-pool.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
(run-task (worker-queue-pop! (fork-join-pool-worker-queue pool) 0 #f) wq)
281281
(fork-join-pool-idle-count-inc! pool)
282282
(cond ((and (worker-queue-wait! wq (->timeout pool))
283-
(worker-queue-shutdown? wq))
283+
(not (worker-queue-shutdown? wq)))
284284
(fork-join-pool-idle-count-dec! pool)
285285
(fork-join-pool-run-worker pool wq))
286286
(else (fork-join-pool-idle-count-dec! pool))))

0 commit comments

Comments
 (0)