Permalink
Browse files

Merge pull request #27 from SocraticGrid/master_drools

- Fixed agent invocation bug when using minimumWaitTime = 0 in DialogueHelper callback
  • Loading branch information...
2 parents 4a5a008 + de41e23 commit 266ef26c0601d125e9dfd18e7f734592f1a0777a @esteban-aliverti esteban-aliverti committed Aug 16, 2013
@@ -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);

0 comments on commit 266ef26

Please sign in to comment.