[Opensrf-commits] r1117 - trunk/src/java/org/opensrf/net/xmpp
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 29 08:37:57 EDT 2007
Author: erickson
Date: 2007-10-29 08:23:31 -0400 (Mon, 29 Oct 2007)
New Revision: 1117
Modified:
trunk/src/java/org/opensrf/net/xmpp/XMPPSession.java
Log:
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
Modified: trunk/src/java/org/opensrf/net/xmpp/XMPPSession.java
===================================================================
--- trunk/src/java/org/opensrf/net/xmpp/XMPPSession.java 2007-10-27 01:48:03 UTC (rev 1116)
+++ trunk/src/java/org/opensrf/net/xmpp/XMPPSession.java 2007-10-29 12:23:31 UTC (rev 1117)
@@ -242,6 +242,7 @@
msg = reader.popMessageQueue();
if( msg != null ) return msg;
checkConnected();
+ if(timeout == 0) break;
}
}
More information about the opensrf-commits
mailing list