diff --git a/bramble-core/src/main/java/org/briarproject/bramble/plugin/tor/TorPlugin.java b/bramble-core/src/main/java/org/briarproject/bramble/plugin/tor/TorPlugin.java index 731b8d841..14d6a5d90 100644 --- a/bramble-core/src/main/java/org/briarproject/bramble/plugin/tor/TorPlugin.java +++ b/bramble-core/src/main/java/org/briarproject/bramble/plugin/tor/TorPlugin.java @@ -452,7 +452,7 @@ abstract class TorPlugin implements DuplexPlugin, EventHandler, EventListener { // in the migration period since first publishing it if (!isNullOrEmpty(privKey2)) { long now = clock.currentTimeMillis(); - long then = v3Created == null ? now : Long.valueOf(v3Created); + long then = v3Created == null ? now : Long.parseLong(v3Created); if (now - then >= V3_MIGRATION_PERIOD_MS) retireV2HiddenService(); else publishV2HiddenService(port, privKey2); }