From 61216b638db64d0b9bea0052b53926775e6c5f6d Mon Sep 17 00:00:00 2001 From: dev <dev@welterde.de> Date: Wed, 9 Jun 2010 12:37:11 +0000 Subject: [PATCH] fixed #49: missing calculateHash() --- .../i2p/router/networkdb/HandleDatabaseLookupMessageJob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java b/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java index 3166f7c708..b753746743 100644 --- a/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java +++ b/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java @@ -151,8 +151,8 @@ public class HandleDatabaseLookupMessageJob extends JobImpl { if ( (info.getIdentity().isHidden()) || (isUnreachable(info) && !publishUnreachable()) ) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Not answering a query for a netDb peer who isn't reachable"); - Set us = new HashSet(1); - us.add(getContext().router().getRouterInfo()); + Set<Hash> us = new HashSet<Hash>(1); + us.add(getContext().router().getRouterInfo().calculateHash()); sendClosest(_message.getSearchKey(), us, fromKey, _message.getReplyTunnel()); //} else if (info.isHidden()) { // // Don't return hidden nodes -- GitLab