[jboss-cvs] jboss-seam/src/main/org/jboss/seam/contexts ...

Gavin King gavin.king at jboss.com
Tue Dec 19 18:12:22 EST 2006


  User: gavin   
  Date: 06/12/19 18:12:22

  Modified:    src/main/org/jboss/seam/contexts  Lifecycle.java
  Log:
  minor opt
  
  Revision  Changes    Path
  1.75      +7 -4      jboss-seam/src/main/org/jboss/seam/contexts/Lifecycle.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Lifecycle.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/Lifecycle.java,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -b -r1.74 -r1.75
  --- Lifecycle.java	19 Dec 2006 21:49:29 -0000	1.74
  +++ Lifecycle.java	19 Dec 2006 23:12:22 -0000	1.75
  @@ -30,7 +30,7 @@
   /**
    * @author Gavin King
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version $Revision: 1.74 $
  + * @version $Revision: 1.75 $
    */
   public class Lifecycle
   {
  @@ -463,10 +463,13 @@
         Contexts.conversationContext.set(conversationContext);
         try
         {
  -         Contexts.destroy( conversationContext );
  +         Contexts.destroy(conversationContext);
  +         if ( !Seam.isSessionInvalid() ) //its also unnecessary during a session timeout
  +         {
            conversationContext.clear();
            conversationContext.flush();
         }
  +      }
         finally
         {
            Contexts.conversationContext.set(old);
  
  
  



More information about the jboss-cvs-commits mailing list