From ef203ba935bc8b31f007747ffd16e3fe5337e0f9 Mon Sep 17 00:00:00 2001 From: idk Date: Mon, 5 Sep 2022 02:00:54 -0400 Subject: [PATCH] setNotRunning before launching the router, counter-intuitively but this is for determining whether we should launch the browser only. The other checks will still work for determining if a router is there. It only needs to be there for the first 21 or so seconds. --- java/net/i2p/router/WinLauncher.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/net/i2p/router/WinLauncher.java b/java/net/i2p/router/WinLauncher.java index f011ecf..cc595a8 100644 --- a/java/net/i2p/router/WinLauncher.java +++ b/java/net/i2p/router/WinLauncher.java @@ -180,7 +180,11 @@ public class WinLauncher { File home = selectHome(); File running = new File(home, "running"); if (!running.exists()){ - running.createNewFile(); + try{ + running.createNewFile(); + }catch(IOException e){ + logger.info(e.toString()); + } } }