|
|
@ -282,6 +282,7 @@ public class MainFlowCtrlScheduler implements ApplicationListener<ApplicationSta |
|
|
|
|
|
|
|
void workFn() { |
|
|
|
while (workThread.isAlive()) { |
|
|
|
try{ |
|
|
|
var state = deviceWorkStateMgrService.getDeviceWorkState(); |
|
|
|
if (state.fatalErrorFlag) { |
|
|
|
OS.forceSleep(500); |
|
|
@ -296,6 +297,9 @@ public class MainFlowCtrlScheduler implements ApplicationListener<ApplicationSta |
|
|
|
|
|
|
|
onPostProcessing(); |
|
|
|
OS.forceSleep(500); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("workFn error {}", e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|