cmd/syncthing: Delay browser start until the GUI is ready (fixes #3619)

This commit is contained in:
Jakob Borg
2016-10-07 12:10:26 +09:00
parent 54d4010f1a
commit 215503b4f7
2 changed files with 21 additions and 9 deletions

View File

@@ -947,6 +947,7 @@ func setupGUI(mainService *suture.Supervisor, cfg *config.Wrapper, m *model.Mode
if cfg.Options().StartBrowser && !runtimeOptions.noBrowser && !runtimeOptions.stRestarting {
// Can potentially block if the utility we are invoking doesn't
// fork, and just execs, hence keep it in it's own routine.
<-api.startedOnce
go openURL(guiCfg.URL())
}
}