From 595b44f79c7580b3d95c63194b1df4f00600f926 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 18 四月 2026 15:08:14 +0800
Subject: [PATCH] Revert "fix(WMS): 修复货位状态变动记录"

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Server.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Server.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Server.cs
index 7bb845e..afaa8ec 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Server.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SocketServer/TcpSocketServer.Server.cs
@@ -19,11 +19,11 @@
         /// </remarks>
         /// <param name="cancellationToken">鍙栨秷浠ょ墝</param>
         /// <returns>鍚姩浠诲姟</returns>
-        public Task StartAsync(CancellationToken cancellationToken)
+        public async Task StartAsync(CancellationToken cancellationToken)
         {
             if (IsRunning || !_options.Enabled)
             {
-                return Task.CompletedTask;
+                return;
             }
 
             // 瑙f瀽鐩戝惉鍦板潃
@@ -32,6 +32,8 @@
             {
                 ipAddress = parsedAddress;
             }
+
+            await Task.Delay(5000);
 
             // 鍒涘缓鐩戝惉鍣�
             _listener = new TcpListener(ipAddress, _options.Port);
@@ -45,7 +47,7 @@
             // 鍚姩瀹㈡埛绔洃鎺т换鍔★紙妫�鏌ョ┖闂茶秴鏃讹級
             _monitorTask = Task.Run(() => MonitorClientsAsync(_cts.Token));
 
-            return Task.CompletedTask;
+            return;
         }
 
         /// <summary>

--
Gitblit v1.9.3