diff --git a/src/ATBAPP/DeviceControllerDiag.cpp b/src/ATBAPP/DeviceControllerDiag.cpp index 50c951f..f276126 100644 --- a/src/ATBAPP/DeviceControllerDiag.cpp +++ b/src/ATBAPP/DeviceControllerDiag.cpp @@ -715,8 +715,10 @@ void DeviceControllerDiag::restartCArun() DCMachineEvent W255Event = DCMachineEvent(DeviceController::State::W255); - machineEventSet.insert(W255Event); - private_sendDiagEvent(W255Event, DeviceController::Action::SET); + if (!this->previousMachineEventSet.contains(W255Event)) { + machineEventSet.insert(W255Event); + private_sendDiagEvent(W255Event, DeviceController::Action::SET); + } QProcess::startDetached("/bin/systemctl", {"restart", "carun"}); }