Skip to content

Commit

Permalink
i2psnark: Delay bandwidth limits check briefly
Browse files Browse the repository at this point in the history
to avoid intermittent "Unable to connect to I2P" message at startup.
  • Loading branch information
zzzi2p committed Nov 27, 2023
1 parent 9fc2426 commit d61b8af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d61b8af

Please sign in to comment.