From 56b7d3c28dab58a4850152d78a5d92e841a56872 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 9 Mar 2014 08:35:53 +0100 Subject: [PATCH] Don't start browser on restart --- cmd/syncthing/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 350a35ff9..6333bbcb4 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -208,7 +208,7 @@ func main() { infof("Starting web GUI on http://%s:%d/", hostShow, addr.Port) startGUI(cfg.Options.GUIAddress, m) - if cfg.Options.StartBrowser { + if cfg.Options.StartBrowser && len(os.Getenv("STRESTART")) == 0 { openURL(fmt.Sprintf("http://%s:%d", hostOpen, addr.Port)) } }