really fixed #49 now.. use Context->routerHash instead of calculating it everyt time

This commit is contained in:
dev
2010-06-09 12:43:48 +00:00
parent 61216b638d
commit 919a97d4c8

View File

@ -152,7 +152,7 @@ public class HandleDatabaseLookupMessageJob extends JobImpl {
if (_log.shouldLog(Log.DEBUG))
_log.debug("Not answering a query for a netDb peer who isn't reachable");
Set<Hash> us = new HashSet<Hash>(1);
us.add(getContext().router().getRouterInfo().calculateHash());
us.add(getContext().routerHash());
sendClosest(_message.getSearchKey(), us, fromKey, _message.getReplyTunnel());
//} else if (info.isHidden()) {
// // Don't return hidden nodes