From b8ede978c2869e730f7b719d5a504f0c20389bfa Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Mon, 23 Jun 2025 21:30:43 +1000 Subject: [PATCH] fix very theoretical incorrect ordering issue --- src/main/java/me/cortex/voxy/common/thread/ServiceSlice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/common/thread/ServiceSlice.java b/src/main/java/me/cortex/voxy/common/thread/ServiceSlice.java index a8f632f2..846e7476 100644 --- a/src/main/java/me/cortex/voxy/common/thread/ServiceSlice.java +++ b/src/main/java/me/cortex/voxy/common/thread/ServiceSlice.java @@ -96,8 +96,8 @@ public class ServiceSlice extends TrackedObject { Logger.error("Tried to do work on a dead service: " + this.name, new Throwable()); return; } - this.jobCount.release(); this.jobCount2.incrementAndGet(); + this.jobCount.release(); this.threadPool.execute(this); }