minor layout change. calling notifyAll to ensure all threads are notified
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 17 Aug 2007 21:50:01 +0000 (21:50 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 17 Aug 2007 21:50:01 +0000 (21:50 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1078 9efc2488-bf62-4759-914b-345cdb29e865

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

index 9c14497..54f0722 100644 (file)
@@ -119,7 +119,7 @@ public class XMPPReader implements Runnable {
      * Each reader should have exactly one dependent session thread. 
      */
     private synchronized void notifyCoreEvent() {
-        notify();
+        notifyAll();
     }
 
 
@@ -137,8 +137,10 @@ public class XMPPReader implements Runnable {
         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;