donaldp     2002/07/18 19:20:45

  Modified:    thread/src/java/org/apache/avalon/excalibur/thread/impl
                        WorkerThread.java
  Log:
  Make sure that the context is always disassociated with the thread
  
  Revision  Changes    Path
  1.5       +1 -1      
jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl/WorkerThread.java
  
  Index: WorkerThread.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl/WorkerThread.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WorkerThread.java 13 May 2002 12:17:38 -0000      1.4
  +++ WorkerThread.java 19 Jul 2002 02:20:45 -0000      1.5
  @@ -79,7 +79,6 @@
                   if( null != m_context ) ThreadContext.setThreadContext( m_context );
                   m_work.execute();
                   m_threadControl.finish( null );
  -                if( null != m_context ) ThreadContext.setThreadContext( null );
               }
               catch( final ThreadDeath threadDeath )
               {
  @@ -100,6 +99,7 @@
                   debug( "done." );
                   m_work = null;
                   m_threadControl = null;
  +                if( null != m_context ) ThreadContext.setThreadContext( null );
               }
   
               //should this be just notify or notifyAll ???
  
  
  

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

Reply via email to