Commit 4e3d775d LN

定时器修改

1 个父辈 9ee40c17
...@@ -98,7 +98,6 @@ namespace OnlineStore.DeviceLibrary ...@@ -98,7 +98,6 @@ namespace OnlineStore.DeviceLibrary
{ {
return; return;
} }
OnTimerProcess();
TimeSpan span = DateTime.Now - lastProTimer; TimeSpan span = DateTime.Now - lastProTimer;
if (isInPro && span.TotalSeconds < TimerMaxSeconds) if (isInPro && span.TotalSeconds < TimerMaxSeconds)
{ {
...@@ -107,7 +106,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -107,7 +106,8 @@ namespace OnlineStore.DeviceLibrary
isInPro = true; isInPro = true;
lastProTimer = DateTime.Now; lastProTimer = DateTime.Now;
try try
{ {
OnTimerProcess();
if (IsDebug && runStatus <= RunStatus.Wait) if (IsDebug && runStatus <= RunStatus.Wait)
{ {
isInPro = false; isInPro = false;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!