Author: toad
Date: 2008-07-12 00:11:37 +0000 (Sat, 12 Jul 2008)
New Revision: 21081
Modified:
branches/db4o/freenet/src/freenet/node/fcp/FCPPersistentRoot.java
Log:
Get the order right
Modified: branches/db4o/freenet/src/freenet/node/fcp/FCPPersistentRoot.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/FCPPersistentRoot.java
2008-07-12 00:11:02 UTC (rev 21080)
+++ branches/db4o/freenet/src/freenet/node/fcp/FCPPersistentRoot.java
2008-07-12 00:11:37 UTC (rev 21081)
@@ -45,8 +45,8 @@
public FCPClient registerForeverClient(final String name,
NodeClientCore core, FCPConnectionHandler handler, FCPServer server,
ObjectContainer container) {
ObjectSet set = container.query(new Predicate() {
public boolean match(FCPClient client) {
- if(client.root != FCPPersistentRoot.this)
return false;
- return client.name.equals(name);
+ if(!client.name.equals(name)) return false;
+ return client.root == FCPPersistentRoot.this;
}
});
if(set.hasNext()) {