led连接还原

master
tq 2 months ago
parent b3b36d93e4
commit 24abed6bd8

@ -136,12 +136,8 @@ public class LedClient
}
}
private static readonly object Locker = new object();
private static bool InnerSend(byte[] bytes)
{
lock (Locker)
{
if (_socket?.Connected ?? false)
{
@ -160,7 +156,6 @@ public class LedClient
}
else
{
Connect();
if (_socket?.Connected ?? false)
{
@ -175,7 +170,6 @@ public class LedClient
}
}
}
}
public static bool SendMsgByKey(string key)
{

Loading…
Cancel
Save