From d0782574a658492f529de28c7d80962b88e20846 Mon Sep 17 00:00:00 2001 From: ishland Date: Sun, 18 Aug 2024 10:28:11 +0800 Subject: [PATCH] fix: thread spinning almost always --- .../flowsched/scheduler/DaemonizedStatusAdvancingScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ishland/flowsched/scheduler/DaemonizedStatusAdvancingScheduler.java b/src/main/java/com/ishland/flowsched/scheduler/DaemonizedStatusAdvancingScheduler.java index 3b2e8a0..8837230 100644 --- a/src/main/java/com/ishland/flowsched/scheduler/DaemonizedStatusAdvancingScheduler.java +++ b/src/main/java/com/ishland/flowsched/scheduler/DaemonizedStatusAdvancingScheduler.java @@ -119,7 +119,7 @@ protected boolean hasPendingUpdates() { @Override protected boolean continueProcessWork() { - return this.taskSize.get() == 0 || super.continueProcessWork(); + return this.taskSize.get() != 0 || super.continueProcessWork(); } @Override