fixed infinite loop bug by hopping out of the loop if timeout gets down to 0, but...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 29 Oct 2007 12:23:31 +0000 (12:23 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 29 Oct 2007 12:23:31 +0000 (12:23 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1117 9efc2488-bf62-4759-914b-345cdb29e865

src/java/org/opensrf/net/xmpp/XMPPSession.java

index df9a84f..f9be7d2 100644 (file)
@@ -242,6 +242,7 @@ public class XMPPSession {
                 msg = reader.popMessageQueue();
                 if( msg != null ) return msg;
                 checkConnected();
+                if(timeout == 0) break;
             }
         }