Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

- Fixed agent invocation bug when using minimumWaitTime = 0 in DialogueHelper callback #27

Merged
merged 1 commit into from

1 participant

@esteban-aliverti
Collaborator

No description provided.

@esteban-aliverti esteban-aliverti merged commit 266ef26 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 16, 2013
  1. @esteban-aliverti
This page is out of date. Refresh to see the latest.
View
3  drools-mas-generic-client/src/main/java/org/drools/mas/helpers/DialogueHelper.java
@@ -425,7 +425,8 @@ public void run() {
}
List<ACLMessage> answers = new ArrayList<ACLMessage>();
- long waitTime = minimumWaitTime;
+ //avoid infinite waiting loop
+ long waitTime = minimumWaitTime <= 0 ? 1 : minimumWaitTime;
do {
try {
Logger.getLogger(DialogueHelper.class.getName()).log(Level.INFO, "Answer for {0} is not ready, wait... ", id);
Something went wrong with that request. Please try again.