diff --git a/cmd/syncthing/monitor.go b/cmd/syncthing/monitor.go index 0c07fbed..786ef107 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