diff --git a/core/thread/thread_pool.odin b/core/thread/thread_pool.odin index 840cecfec..4fd5c90d1 100644 --- a/core/thread/thread_pool.odin +++ b/core/thread/thread_pool.odin @@ -111,9 +111,9 @@ pool_join :: proc(pool: ^Pool) { for t in pool.threads { if .Started in t.flags { started_count += 1 - } - if .Joined not_in t.flags { - join(t) + if .Joined not_in t.flags { + join(t) + } } } }