:sparkles:启动后将自动以 1秒/次 的速度测试节点延迟(Tcping)

This commit is contained in:
Amazing_DM
2020-03-19 23:15:12 +08:00
parent 8fc4e3151f
commit 09bddd9ad4

View File

@@ -875,6 +875,25 @@ namespace Netch.Forms
}
State = Models.State.Started;
// 自动检测延迟
Task.Run(() =>
{
while (true)
{
if (State == Models.State.Started)
{
server.Test();
// 重载服务器列表
InitServer();
Thread.Sleep(1000);
}
else
{
break;
}
}
});
}
else
{