Author: robert
Date: 2008-01-29 16:44:21 +0000 (Tue, 29 Jan 2008)
New Revision: 17392
Modified:
trunk/freenet/src/freenet/io/comm/MessageCore.java
Log:
paranoia
Modified: trunk/freenet/src/freenet/io/comm/MessageCore.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/MessageCore.java 2008-01-29 16:36:59 UTC
(rev 17391)
+++ trunk/freenet/src/freenet/io/comm/MessageCore.java 2008-01-29 16:44:21 UTC
(rev 17392)
@@ -157,6 +157,11 @@
synchronized (_filters) {
for (ListIterator i = _filters.listIterator();
i.hasNext();) {
MessageFilter f = (MessageFilter) i.next();
+ if (f.matched()) {
+ Logger.error(this, "removed pre-matched
message filter found in _filters: "+f);
+ i.remove();
+ continue;
+ }
if (f.match(m)) {
matched = true;
i.remove();