fix: 修复数据库与SignalR无法连接的问题
This commit is contained in:
@@ -229,11 +229,11 @@ public class UDPClientPool
|
||||
public static async ValueTask<Result<RecvDataPackage>> ReadAddr(
|
||||
IPEndPoint endPoint, int taskID, uint devAddr, int dataLength, int timeout = 1000)
|
||||
{
|
||||
if (dataLength <= 0)
|
||||
return new(new ArgumentException("Data length must be greater than 0"));
|
||||
if (dataLength <= 0) return new(new ArgumentException(
|
||||
$"Data length must be greater than 0, instead of {dataLength}"));
|
||||
|
||||
if (dataLength > 255)
|
||||
return new(new ArgumentException("Data length must be less than or equal to 255"));
|
||||
if (dataLength > 255) return new(new ArgumentException(
|
||||
$"Data length must be less than or equal to 255, instead of {dataLength}"));
|
||||
|
||||
var ret = false;
|
||||
var opts = new SendAddrPackOptions()
|
||||
|
||||
Reference in New Issue
Block a user