directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvermill...@apache.org
Subject svn commit: r428284 - /directory/sandbox/jvermillard/mina/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
Date Thu, 03 Aug 2006 08:42:19 GMT
Author: jvermillard
Date: Thu Aug  3 01:42:19 2006
New Revision: 428284

URL: http://svn.apache.org/viewvc?rev=428284&view=rev
Log:
added a type check for BaseIoSession PDU counting

Modified:
    directory/sandbox/jvermillard/mina/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java

Modified: directory/sandbox/jvermillard/mina/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
URL: http://svn.apache.org/viewvc/directory/sandbox/jvermillard/mina/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java?rev=428284&r1=428283&r2=428284&view=diff
==============================================================================
--- directory/sandbox/jvermillard/mina/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
(original)
+++ directory/sandbox/jvermillard/mina/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
Thu Aug  3 01:42:19 2006
@@ -219,7 +219,10 @@
         {
             encoder.encode( session, message, encoderOut );
             
-            ((BaseIoSession)session).increaseWrittenMessages();
+            if( session instanceof BaseIoSession )
+            {
+                ( (BaseIoSession) session ).increaseWrittenMessages();
+            }
         }
         catch( Throwable t )
         {



Mime
View raw message