From 24cdda79ce7b82e5d1f57ca27b7047d082fd4983 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 29 Oct 2007 12:23:31 +0000 Subject: [PATCH] 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 --- src/java/org/opensrf/net/xmpp/XMPPSession.java | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.11.0