From: erickson Date: Mon, 29 Oct 2007 12:23:31 +0000 (+0000) Subject: fixed infinite loop bug by hopping out of the loop if timeout gets down to 0, but... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=24cdda79ce7b82e5d1f57ca27b7047d082fd4983;p=working%2FOpenSRF.git fixed infinite loop bug by hopping out of the loop if timeout gets down to 0, but the code still allows the the loop to occur once if timeout is initially 0 git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1117 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/java/org/opensrf/net/xmpp/XMPPSession.java b/src/java/org/opensrf/net/xmpp/XMPPSession.java index df9a84f..f9be7d2 100644 --- a/src/java/org/opensrf/net/xmpp/XMPPSession.java +++ b/src/java/org/opensrf/net/xmpp/XMPPSession.java @@ -242,6 +242,7 @@ public class XMPPSession { msg = reader.popMessageQueue(); if( msg != null ) return msg; checkConnected(); + if(timeout == 0) break; } }