Jeroen van Rijn 3 years ago
parent
commit
42371f7aea
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/thread/thread_pool.odin

+ 3 - 3
core/thread/thread_pool.odin

@@ -111,9 +111,9 @@ pool_join :: proc(pool: ^Pool) {
 		for t in pool.threads {
 		for t in pool.threads {
 			if .Started in t.flags {
 			if .Started in t.flags {
 				started_count += 1
 				started_count += 1
-			}
-			if .Joined not_in t.flags {
-				join(t)
+				if .Joined not_in t.flags {
+					join(t)
+				}
 			}
 			}
 		}
 		}
 	}
 	}