mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r548899 - /mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultIoFuture.java
Date Wed, 20 Jun 2007 02:52:09 GMT
Author: trustin
Date: Tue Jun 19 19:52:08 2007
New Revision: 548899

URL: http://svn.apache.org/viewvc?view=rev&rev=548899
Log:
Fixed DefaultIoFuture.removeListener doesn't remove the first listener when there's only one
listener

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultIoFuture.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultIoFuture.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultIoFuture.java?view=diff&rev=548899&r1=548898&r2=548899
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultIoFuture.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultIoFuture.java Tue
Jun 19 19:52:08 2007
@@ -238,6 +238,8 @@
                 if (listener == firstListener) {
                     if (otherListeners != null && !otherListeners.isEmpty()) {
                         firstListener = otherListeners.remove(0);
+                    } else {
+                        firstListener = null;
                     }
                 } else if (otherListeners != null) {
                     otherListeners.remove(listener);



Mime
View raw message