From ba8cadc2f1589d3cfab770c9af99e8f517c532c9 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Tue, 20 Jan 2015 22:25:34 +0000 Subject: [PATCH] Opening a browser happens in it's own routine (fixes #1273) --- cmd/syncthing/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 2c6fa6ef5..630d3058b 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -658,7 +658,9 @@ func setupGUI(cfg *config.Wrapper, m *model.Model) { } if opts.StartBrowser && !noBrowser && !stRestarting { urlOpen := fmt.Sprintf("%s://%s/", proto, net.JoinHostPort(hostOpen, strconv.Itoa(addr.Port))) - openURL(urlOpen) + // Can potentially block if the utility we are invoking doesn't + // fork, and just execs, hence keep it in it's own routine. + go openURL(urlOpen) } } }