mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-09 09:50:30 +00:00
Opening a browser happens in it's own routine (fixes #1273)
This commit is contained in:
parent
8358fedaf4
commit
ba8cadc2f1
@ -658,7 +658,9 @@ func setupGUI(cfg *config.Wrapper, m *model.Model) {
|
|||||||
}
|
}
|
||||||
if opts.StartBrowser && !noBrowser && !stRestarting {
|
if opts.StartBrowser && !noBrowser && !stRestarting {
|
||||||
urlOpen := fmt.Sprintf("%s://%s/", proto, net.JoinHostPort(hostOpen, strconv.Itoa(addr.Port)))
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user