summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/cmd/stop.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/rr/cmd/stop.go b/cmd/rr/cmd/stop.go
index 8beee73e..7b4794e7 100644
--- a/cmd/rr/cmd/stop.go
+++ b/cmd/rr/cmd/stop.go
@@ -38,7 +38,6 @@ func stopHandler(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
- defer client.Close()
util.Printf("<green>Stopping RoadRunner</reset>: ")
@@ -48,5 +47,5 @@ func stopHandler(cmd *cobra.Command, args []string) error {
}
util.Printf("<green+hb>done</reset>\n")
- return nil
+ return client.Close()
}