Permalink
Browse files

- Fixed agent invocation bug when using minimumWaitTime = 0 in Dialog…

…ueHelper callback
  • Loading branch information...
1 parent 4a5a008 commit de41e2372e1450c9d63ec7c1041b6c910459a65f @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 de41e23

Please sign in to comment.