非有线网络情况下 超过最大不活跃时间时重启系统

This commit is contained in:
WangQiang 2016-10-24 05:58:00 +00:00
parent b90537dd75
commit b693f60057
1 changed files with 1 additions and 0 deletions

View File

@ -345,6 +345,7 @@ void TokenClient::LoopTask()
if (MaxNotActive != 0 && LastActive + MaxNotActive < Sys.Ms())
{
Master->Close();
if (Master->Socket->Host->Mode != SocketMode::Wire)Sys.Reboot();
// Sys.Reboot();
}
}