From e04f0981da6554606359e6de4e91b752a64aae6c Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期六, 29 三月 2025 15:59:20 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/impl/NyShuttleThread.java | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java index 9f01c00..c025b26 100644 --- a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java +++ b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java @@ -743,12 +743,21 @@ return false; } + if (this.shuttleProtocol.getMode() == 0) { + return true; + } + + if (!this.shuttleProtocol.getErrorCode().equals("0")) { + return true; + } + InnerSuhttleExtend extend = (InnerSuhttleExtend) this.shuttleProtocol.getExtend(); - boolean res = this.shuttleProtocol.getMode() == 0 - || !this.shuttleProtocol.getErrorCode().equals("0") - || extend.getSuspendState() == 1 - ; - return res; + + if (extend.getSuspendState() == 1) { + return true; + } + + return false; } @Override -- Gitblit v1.9.1