[Opensrf-commits] r1078 - trunk/src/java/org/opensrf/net/xmpp

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 17 17:54:15 EDT 2007


Author: erickson
Date: 2007-08-17 17:50:01 -0400 (Fri, 17 Aug 2007)
New Revision: 1078

Modified:
   trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java
Log:
minor layout change.  calling notifyAll to ensure all threads are notified

Modified: trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java
===================================================================
--- trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java	2007-08-14 19:08:38 UTC (rev 1077)
+++ trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java	2007-08-17 21:50:01 UTC (rev 1078)
@@ -119,7 +119,7 @@
      * Each reader should have exactly one dependent session thread. 
      */
     private synchronized void notifyCoreEvent() {
-        notify();
+        notifyAll();
     }
 
 
@@ -137,8 +137,10 @@
         long start = new Date().getTime();
 
         try{
-            if(timeout < 0) wait();
-            else wait(timeout);
+            if(timeout < 0) 
+                wait();
+            else 
+                wait(timeout);
         } catch(InterruptedException ie) {}
 
         return new Date().getTime() - start;



More information about the opensrf-commits mailing list