From 14aea365c52fb3f1da8dcc701219ae4887bb1bec Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 6 Sep 2014 07:28:57 +0200 Subject: [PATCH] Don't stop permanently on exit (fixes #637) --- cmd/syncthing/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/monitor.go b/cmd/syncthing/monitor.go index 0c07fbed1..786ef107d 100644 --- a/cmd/syncthing/monitor.go +++ b/cmd/syncthing/monitor.go @@ -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