Compare commits

...

2 Commits

Author SHA1 Message Date
Jakob Borg
84eb729bd4 Don't start the browser on restarts (fixes #636) 2014-09-06 07:35:30 +02:00
Jakob Borg
14aea365c5 Don't stop permanently on exit (fixes #637) 2014-09-06 07:28:57 +02:00

View File

@@ -86,7 +86,7 @@ func monitorMain() {
cmd.Process.Kill()
<-exit
return
case <-exit:
case err = <-exit:
if err == nil {
// Successfull exit indicates an intentional shutdown
return
@@ -95,6 +95,10 @@ func monitorMain() {
l.Infoln("Syncthing exited:", err)
time.Sleep(1 * time.Second)
// Let the next child process know that this is not the first time
// it's starting up.
os.Setenv("STRESTART", "yes")
}
}