Skip to content

Commit

Permalink
fix(remote): Make SlaveContainer call updateWatchList() on start()
Browse files Browse the repository at this point in the history
  • Loading branch information
ettersi committed Nov 17, 2023
1 parent 0d4bc3e commit 187fd2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/arl/fjage/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ protected void initComplete() {
* Starts the container and all agents in it.
* This should be called after init().
*/
void start() {
protected void start() {
if (!running) {
log.info("Starting container...");
running = true;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/org/arl/fjage/remote/SlaveContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ public AgentID add(String name, Agent agent) {
return aid;
}

protected void start() {
super.start();
updateWatchList();
}

public boolean kill(AgentID aid) {
boolean rv = super.kill(aid);
if (rv) updateWatchList();
Expand Down

0 comments on commit 187fd2e

Please sign in to comment.