From d61b8af1382cc7a38ead38a45eea81a35fcd65d1 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 27 Nov 2023 06:52:26 -0500 Subject: [PATCH] i2psnark: Delay bandwidth limits check briefly to avoid intermittent "Unable to connect to I2P" message at startup. --- apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java index 338070af7c..13fad5ee91 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java +++ b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java @@ -2574,6 +2574,9 @@ public void run() { try { Thread.sleep(delay); } catch (InterruptedException ie) {} // Remove that first message _messages.clearThrough(id); + } else if (_context.isRouterContext()) { + // to wait for client manager to be up so we can get bandwidth limits + try { Thread.sleep(3000); } catch (InterruptedException ie) {} } // here because we need to delay until I2CP is up