Browse Source

Don't start browser on restart

Jakob Borg 11 years ago
parent
commit
56b7d3c28d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/syncthing/main.go

+ 1 - 1
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))
 			}
 		}