Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #27 from SocraticGrid/master_drools
Browse files Browse the repository at this point in the history
- Fixed agent invocation bug when using minimumWaitTime = 0 in DialogueHelper callback
  • Loading branch information
esteban-aliverti committed Aug 16, 2013
2 parents 4a5a008 + de41e23 commit 266ef26
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -425,7 +425,8 @@ private List<ACLMessage> waitForAnswers( String id, int expectedMessagesNumber,
}

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);
Expand Down

0 comments on commit 266ef26

Please sign in to comment.