From 34b3f498a7c3663431073a91df35d9936decc5e0 Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期一, 15 十二月 2025 08:46:55 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/thread/impl/ZyStationThread.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/zy/core/thread/impl/ZyStationThread.java b/src/main/java/com/zy/core/thread/impl/ZyStationThread.java
index 2624e46..3d932ea 100644
--- a/src/main/java/com/zy/core/thread/impl/ZyStationThread.java
+++ b/src/main/java/com/zy/core/thread/impl/ZyStationThread.java
@@ -59,7 +59,7 @@
//璁惧璇诲彇
Thread readThread = new Thread(() -> {
- while (true) {
+ while (!Thread.currentThread().isInterrupted()) {
try {
readStatus();
Thread.sleep(200);
@@ -70,7 +70,7 @@
});
readThread.start();
- while (true) {
+ while (!Thread.currentThread().isInterrupted()) {
try {
int step = 1;
Task task = MessageQueue.poll(SlaveType.Devp, deviceConfig.getDeviceNo());
--
Gitblit v1.9.1