From afa3115d2ad869465df8c3d7a0703cbb0929b959 Mon Sep 17 00:00:00 2001 From: wenjy Date: Fri, 2 Feb 2024 11:16:19 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=BF=83=E8=B7=B3=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=E5=90=8E=E5=A2=9E=E5=8A=A0=E6=A0=A1=E6=97=B6=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=EF=BC=8C=E5=9B=9E=E5=A4=8D=E5=BF=83=E8=B7=B3=E5=90=8E?= =?UTF-8?q?=E7=AD=89=E5=BE=85500ms=E4=B8=8B=E5=8F=91=E6=A0=A1=E6=97=B6?= =?UTF-8?q?=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ems.CollectService.Analysis/BufferAnalysis.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Ems.CollectService.Analysis/BufferAnalysis.cs b/Ems.CollectService.Analysis/BufferAnalysis.cs index c693a01..127dad0 100644 --- a/Ems.CollectService.Analysis/BufferAnalysis.cs +++ b/Ems.CollectService.Analysis/BufferAnalysis.cs @@ -11,6 +11,7 @@ using System.Data.SqlTypes; using System.Linq; using System.Net.Sockets; using System.Text; +using System.Threading; using System.Threading.Tasks; using TouchSocket.Sockets; @@ -153,8 +154,9 @@ namespace Ems.CollectService.Analysis if(SendMessageAsync(client, SendMessagePackInfo)) { logger.Debug($"向客户端:{client.ID};地址:{client.GetIPPort()};回复心跳指令成功"); - //bool isRes = SendTimeSyncToClient(client, SendMessagePackInfo); - //logger.Info($"向客户端:{client.ID};地址:{client.GetIPPort()};发送校时指令{(isRes ? "成功":"失败")}"); + Thread.Sleep(500); + bool isRes = SendTimeSyncToClient(client, SendMessagePackInfo); + logger.Info($"向客户端:{client.ID};地址:{client.GetIPPort()};发送校时指令{(isRes ? "成功":"失败")}"); return true; } else