From 46d80619b691e99a485a648fced30333bc0e2810 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 17 Aug 2007 21:50:01 +0000 Subject: [PATCH 1/1] minor layout change. calling notifyAll to ensure all threads are notified git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1078 9efc2488-bf62-4759-914b-345cdb29e865 --- src/java/org/opensrf/net/xmpp/XMPPReader.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/java/org/opensrf/net/xmpp/XMPPReader.java b/src/java/org/opensrf/net/xmpp/XMPPReader.java index 9c14497..54f0722 100644 --- a/src/java/org/opensrf/net/xmpp/XMPPReader.java +++ b/src/java/org/opensrf/net/xmpp/XMPPReader.java @@ -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; -- 2.43.2