We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ca2f5 commit fc21f36Copy full SHA for fc21f36
occ/occlib/OccServer.cxx
@@ -439,8 +439,10 @@ void OccServer::runChecker()
439
440
// execute periodic check, in any state
441
int err = m_rco->iterateCheck();
442
- if (err) {
+ // if there's an error but the SM hasn't been moved to t_State::error yet
443
+ if (err && (m_rco->getState() != t_State::error)) {
444
updateState(t_State::error);
445
+
446
// the above publishes a state change event to the StateStream, but we also push an exception event on the
447
// EventStream because the transition was initiated by the task
448
auto taskErrorEvent = new pb::DeviceEvent;
0 commit comments