Skip to content

Commit

Permalink
fix concurrent modification of remote instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineThreepwood committed Aug 3, 2023
1 parent 1587183 commit 8226f54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.*;

Expand All @@ -73,7 +74,7 @@ public class RemoteAction implements Action {
private final ActionParameter actionParameter;
private final ObservableImpl<RemoteAction, ActionDescription> actionDescriptionObservable;
private final AuthToken authToken;
private final List<RemoteAction> impactedRemoteActions = new ArrayList<>();
private final List<RemoteAction> impactedRemoteActions = Collections.synchronizedList(new ArrayList<>());
private final Observer impactActionObserver = new Observer<RemoteAction, ActionDescription>() {
@Override
public void update(RemoteAction source, ActionDescription observable) throws Exception {
Expand Down

0 comments on commit 8226f54

Please sign in to comment.