serge       02/04/18 07:14:53

  Modified:    src/java/org/apache/james/transport/mailets
                        RemoteDelivery.java
  Log:
  Moved notifyAll to happen after the threads were interrupted.  Without this, the run 
method was not stopping.
  
  Revision  Changes    Path
  1.19      +3 -3      
jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
  
  Index: RemoteDelivery.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- RemoteDelivery.java       17 Apr 2002 16:22:58 -0000      1.18
  +++ RemoteDelivery.java       18 Apr 2002 14:14:53 -0000      1.19
  @@ -45,8 +45,8 @@
    * @author Serge Knystautas <[EMAIL PROTECTED]>
    * @author Federico Barbieri <[EMAIL PROTECTED]>
    *
  - * This is $Revision: 1.18 $
  - * Committed on $Date: 2002/04/17 16:22:58 $ by: $Author: serge $
  + * This is $Revision: 1.19 $
  + * Committed on $Date: 2002/04/18 14:14:53 $ by: $Author: serge $
    */
   public class RemoteDelivery extends GenericMailet implements Runnable {
   
  @@ -406,11 +406,11 @@
       // Need to synchronize to get object monitor for notifyAll()
       public synchronized void destroy() {
           //Wake up all threads from waiting for an accept
  -        notifyAll();
           for (Iterator i = deliveryThreads.iterator(); i.hasNext(); ) {
               Thread t = (Thread)i.next();
               t.interrupt();
           }
  +        notifyAll();
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to