diff --git a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc index a86bd0033eb69adb027c86b88c2a51adeb88ce1b..a97a0e60791cf4371e3c7f361495f5378688dd7c 100644 --- a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc +++ b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc @@ -980,17 +980,13 @@ void ObservationControl::_databaseEventHandler(GCFEvent& event) string command = ((GCFPVString*) (dpEvent.value._pValue))->getValue(); if (command == "ABORT") { LOG_INFO("Received manual request for abort, accepting it."); - if (itsState <= CTState::RESUME) { - itsQuitReason = CT_RESULT_MANUAL_ABORT; - } + itsQuitReason = CT_RESULT_MANUAL_ABORT; itsTimerPort->cancelTimer(itsStopTimer); // cancel old timer itsStopTimer = itsTimerPort->setTimer(0.0); // expire immediately } else if (command == "FINISH") { LOG_INFO("Received manual request for finish, accepting it."); - if (itsState <= CTState::RESUME) { - itsQuitReason = CT_RESULT_NO_ERROR; - } + itsQuitReason = CT_RESULT_NO_ERROR; itsTimerPort->cancelTimer(itsStopTimer); // cancel old timer itsStopTimer = itsTimerPort->setTimer(0.0); // expire immediately }