修复DeviceManager.cs中缺少_reconnectAttempts字段的错误

This commit is contained in:
zqm
2025-10-29 16:54:10 +08:00
parent 1fb1f6c836
commit 5b4f2bea62

View File

@@ -190,6 +190,8 @@ namespace JoyD.Windows.CS.Toprie
private System.Threading.Timer _reconnectTimer; private System.Threading.Timer _reconnectTimer;
// 重连间隔(毫秒) // 重连间隔(毫秒)
private int _reconnectInterval = 2000; private int _reconnectInterval = 2000;
// 重连尝试次数
private int _reconnectAttempts = 0;
// 最大重连尝试次数 // 最大重连尝试次数
public static int MaxReconnectAttempts = 5; public static int MaxReconnectAttempts = 5;
// 连接检查定时器 // 连接检查定时器