From 92a26f6f7b891674e79df51fe7df3a2b979d4428 Mon Sep 17 00:00:00 2001 From: zzz Date: Fri, 17 Nov 2017 20:34:51 +0000 Subject: [PATCH] Addressbook: Fix adding alternates after importing an empty book (ticket #2072) --- .../java/src/net/i2p/router/naming/BlockfileNamingService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/addressbook/java/src/net/i2p/router/naming/BlockfileNamingService.java b/apps/addressbook/java/src/net/i2p/router/naming/BlockfileNamingService.java index 58790e7f0..0591fad58 100644 --- a/apps/addressbook/java/src/net/i2p/router/naming/BlockfileNamingService.java +++ b/apps/addressbook/java/src/net/i2p/router/naming/BlockfileNamingService.java @@ -249,6 +249,7 @@ public class BlockfileNamingService extends DummyNamingService { int total = 0; for (String hostsfile : getFilenames(list)) { + _lists.add(hostsfile); File file = new File(_context.getRouterDir(), hostsfile); if ((!file.exists()) || !(file.canRead())) continue; @@ -288,7 +289,6 @@ public class BlockfileNamingService extends DummyNamingService { } total += count; _log.logAlways(Log.INFO, "Migrating " + count + " hosts from " + file + " to new hosts database"); - _lists.add(hostsfile); } if (_log.shouldLog(Log.INFO)) _log.info("DB init took " + DataHelper.formatDuration(_context.clock().now() - start));