From 720e0926fa1c94b952c26e111206c5d6e1ed5ba2 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期二, 21 四月 2026 15:59:49 +0800
Subject: [PATCH] Merge branch 'master' of http://47.97.1.152:5880/r/zy-wcs-master

---
 src/main/java/com/zy/core/ServerBootstrap.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java
index 1d06001..82d1ebd 100644
--- a/src/main/java/com/zy/core/ServerBootstrap.java
+++ b/src/main/java/com/zy/core/ServerBootstrap.java
@@ -25,6 +25,8 @@
 @Component
 public class ServerBootstrap {
 
+    private static boolean initThread = false;
+
     @Autowired
     private MainProcess mainProcess;
     @Autowired
@@ -34,6 +36,9 @@
 
     @Async
     public void init() throws InterruptedException {
+        if (initThread) {
+            return;
+        }
         News.info("鏍稿績鎺у埗灞傚紑濮嬪垵濮嬪寲...............................................");
         clearStartupRuntimeLocks();
         // 鍒濆鍖栨秷鎭槦鍒�
@@ -42,6 +47,7 @@
         initThread();
         // 寮�濮嬩富娴佺▼杩涚▼
         mainProcess.start();
+        initThread = true;
         News.info("鏍稿績鎺у埗灞傚凡鍚姩...............................................");
     }
 

--
Gitblit v1.9.1