From 3a471ae651b228231bebb3a2d438baa1d4ac0261 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 21 十一月 2025 08:57:52 +0800
Subject: [PATCH] 优化
---
HMI.Core/Util/MSMQHelper.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/HMI.Core/Util/MSMQHelper.cs b/HMI.Core/Util/MSMQHelper.cs
index 14c8125..41dcf48 100644
--- a/HMI.Core/Util/MSMQHelper.cs
+++ b/HMI.Core/Util/MSMQHelper.cs
@@ -87,13 +87,13 @@
{
MessageID = string.Empty;
MsgString = string.Empty;
- TimeSpan Time = new TimeSpan(TimeOut*10000);
+ TimeSpan Time = new TimeSpan(TimeOut);
Message MsgReceived = null;
try
{
MsgReceived = this.msgQueue.Receive(Time);
}
- catch(Exception ex)
+ catch
{
// do nothing
}
--
Gitblit v1.9.1