Skip to content

Commit

Permalink
fix(remote): allow messages from slaves to be queued if master contai…
Browse files Browse the repository at this point in the history
…ner not fully started
  • Loading branch information
mchitre committed Feb 19, 2024
1 parent 935738b commit 4a30e39
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/arl/fjage/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ public boolean send(Message m) {
* @return true if delivered, false otherwise.
*/
public boolean send(Message m, boolean relay) {
if (!running) return false;
if (relay) log.warning("Container does not support relaying");
if (m.getSentAt() == null) m.setSentAt(platform.currentTimeMillis());
synchronized (listeners) {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/arl/fjage/remote/MasterContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ public boolean send(Message m) {

@Override
public boolean send(Message m, boolean relay) {
if (!running) return false;
boolean sent = super.send(m, false);
AgentID aid = m.getRecipient();
if (aid == null) return false;
Expand Down

0 comments on commit 4a30e39

Please sign in to comment.