From 1323d899129c6271a7c9c17550da1130e0655105 Mon Sep 17 00:00:00 2001 From: hypercubus Date: Wed, 1 Sep 2004 11:43:33 +0000 Subject: [PATCH] last revision inadvertently launched the router console every time the router was started --- apps/systray/java/src/net/i2p/apps/systray/SysTray.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/systray/java/src/net/i2p/apps/systray/SysTray.java b/apps/systray/java/src/net/i2p/apps/systray/SysTray.java index 8d08a3aa9..8e555114c 100644 --- a/apps/systray/java/src/net/i2p/apps/systray/SysTray.java +++ b/apps/systray/java/src/net/i2p/apps/systray/SysTray.java @@ -41,7 +41,9 @@ public class SysTray implements SysTrayMenuListener { _browserString = _configFile.getProperty("browser", "default"); _portString = _configFile.getProperty("port", "7657"); - openRouterConsole("http://localhost:" + _portString + "/"); + + if (!(new File("router.config")).exists()) + openRouterConsole("http://localhost:" + _portString + "/"); if (System.getProperty("os.name").startsWith("Windows")) _instance = new SysTray();