cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon Cocoon.java
Date Wed, 06 Aug 2003 10:45:31 GMT
cziegeler    2003/08/06 03:45:31

  Modified:    src/java/org/apache/cocoon Cocoon.java
  Log:
  Unregister before disposing (isn't really needed, but looks better)
  
  Revision  Changes    Path
  1.12      +4 -1      cocoon-2.1/src/java/org/apache/cocoon/Cocoon.java
  
  Index: Cocoon.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/Cocoon.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Cocoon.java	5 Aug 2003 16:56:20 -0000	1.11
  +++ Cocoon.java	6 Aug 2003 10:45:31 -0000	1.12
  @@ -491,6 +491,9 @@
        * Dispose this instance
        */
       public void dispose() {
  +        if (this.commands != null && this.threads != null ) {
  +            this.threads.deregister(this.commands);
  +        }
           ContainerUtil.dispose(this.commands);
           this.commands = null;
           ContainerUtil.dispose(this.threads);
  
  
  

Mime
View raw message