From 6934fe9d13cb1eb7c8418f4afdff634e1611ad47 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 17 十一月 2023 11:17:42 +0800 Subject: [PATCH] 增加调试权限开关失败提示 --- HDL_ON/DAL/DriverLayer/UdpSocket.cs | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/UdpSocket.cs b/HDL_ON/DAL/DriverLayer/UdpSocket.cs index 4bb4c7f..df9662a 100644 --- a/HDL_ON/DAL/DriverLayer/UdpSocket.cs +++ b/HDL_ON/DAL/DriverLayer/UdpSocket.cs @@ -27,22 +27,17 @@ /// </summary> public void Start (int port = 0) { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳�0"); if (IsRunning) { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳絰"); if (port == Port) { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳絪"); return; } else { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳絘"); busSocket.Close(); } } - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳�1"); if (port != 0) Port = port; if (Port == 0) @@ -125,9 +120,9 @@ Console.WriteLine("asyncBeginReceive " + relinkCount ); if (relinkCount == 0) { + relinkCount = 1; asyncBeginReceive(); } - relinkCount = 1; Console.WriteLine($"asyncBeginReceive {e.Message}"); } } -- Gitblit v1.8.0