From 73905dea456af423049753fff10a853d7394ece7 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期日, 12 四月 2026 20:40:25 +0800
Subject: [PATCH] feat(WMS): 新增dispatchTasksToWCS.vue批量下发弹窗组件 - 工具栏按钮触发弹窗 - 表格展示选中任务,可编辑地址和优先级 - 非可下发状态任务行标红且不可编辑 - 显示下发失败任务列表

---
 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