From d4ad0876b28aa1f2b4041d6d77c9716562cf7251 Mon Sep 17 00:00:00 2001 From: Divine Threepwood Date: Tue, 7 Nov 2023 21:56:42 +0100 Subject: [PATCH] Fix concurrent modification exception in RemoteAction by taking care that the impacted remote actions are only accessed once the controller initialization is done. --- .../org/openbase/bco/dal/remote/action/RemoteAction.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/dal/remote/src/main/java/org/openbase/bco/dal/remote/action/RemoteAction.java b/module/dal/remote/src/main/java/org/openbase/bco/dal/remote/action/RemoteAction.java index 5bdb822d1b..0ea35e8516 100644 --- a/module/dal/remote/src/main/java/org/openbase/bco/dal/remote/action/RemoteAction.java +++ b/module/dal/remote/src/main/java/org/openbase/bco/dal/remote/action/RemoteAction.java @@ -643,6 +643,11 @@ public boolean isRunning() { */ @Override public boolean isDone() { + + if (futureObservationTask != null && !futureObservationTask.isDone()) { + return false; + } + try { if (getActionDescription().getIntermediary()) { for (final RemoteAction impactedRemoteAction : impactedRemoteActions) {