Commit
This commit is contained in:
@@ -403,6 +403,13 @@ bool ProductionService::stop(QString *error)
|
||||
return;
|
||||
}
|
||||
|
||||
if ((order.status == "RUNNING" || order.status == "PAUSED")
|
||||
&& !OrderService::instance().cancelOrder(
|
||||
m_orderId, &orderError)) {
|
||||
failTermination(orderError);
|
||||
return;
|
||||
}
|
||||
|
||||
QString persistenceError;
|
||||
if (m_runId > 0
|
||||
&& !ProductionRepository().finishRun(
|
||||
|
||||
Reference in New Issue
Block a user