From 57bae3c39c1f92c4748bf367a6d9fc498542277a Mon Sep 17 00:00:00 2001 From: Douglas Gillespie <50671166+douggillespie@users.noreply.github.com> Date: Thu, 13 Apr 2023 17:05:40 +0100 Subject: [PATCH] Fix reprocess manager Stop it responding with stupid questions when there are no part complete stores. --- src/PamController/fileprocessing/ReprocessManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PamController/fileprocessing/ReprocessManager.java b/src/PamController/fileprocessing/ReprocessManager.java index 2272d3cf..4f05913a 100644 --- a/src/PamController/fileprocessing/ReprocessManager.java +++ b/src/PamController/fileprocessing/ReprocessManager.java @@ -175,9 +175,11 @@ public class ReprocessManager { ArrayList outputStores = PamController.getInstance().findControlledUnits(DataOutputStore.class, true); boolean partStores = false; + int nOutputStores = 0; for (PamControlledUnit aPCU : outputStores) { DataOutputStore offlineStore = (DataOutputStore) aPCU; StoreStatus status = offlineStore.getStoreStatus(false); + nOutputStores++; if (status == null) { continue; } @@ -191,8 +193,8 @@ public class ReprocessManager { } if (partStores == false) { - choiceSummary.addChoice(ReprocessStoreChoice.STARTNORMAL); - return choiceSummary; +// choiceSummary.addChoice(ReprocessStoreChoice.STARTNORMAL); + return null; // no part full stores, so can start without questions } if (choiceSummary.getInputStartTime() >= choiceSummary.getOutputEndTime()) { /*