james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r983756 - /james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractChannelUpstreamHandler.java
Date Mon, 09 Aug 2010 18:07:18 GMT
Author: norman
Date: Mon Aug  9 18:07:18 2010
New Revision: 983756

URL: http://svn.apache.org/viewvc?rev=983756&view=rev
Log:
just some small improvement

Modified:
    james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractChannelUpstreamHandler.java

Modified: james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractChannelUpstreamHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractChannelUpstreamHandler.java?rev=983756&r1=983755&r2=983756&view=diff
==============================================================================
--- james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractChannelUpstreamHandler.java
(original)
+++ james/protocols/trunk/impl/src/main/java/org/apache/james/protocols/impl/AbstractChannelUpstreamHandler.java
Mon Aug  9 18:07:18 2010
@@ -121,13 +121,11 @@ public abstract class AbstractChannelUps
      * @param channel
      */
     protected void cleanup(Channel channel) {
-        ProtocolSession session = (ProtocolSession) attributes.get(channel);
+        ProtocolSession session = (ProtocolSession) attributes.remove(channel);
         if (session != null) {
             session.resetState();
             session = null;
         }
-        attributes.remove(channel);
-
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message