cmd/chihaya: stop hooks

Fixes #214.
This commit is contained in:
Leo Balduf
2016-09-24 13:38:05 -04:00
parent c1b7ba4a52
commit 86ebb108fc
3 changed files with 41 additions and 3 deletions
+5 -1
View File
@@ -119,7 +119,11 @@ func rootCmdRun(cmd *cobra.Command, args []string) error {
}
}
// TODO(jzelinskie): stop hooks here
// Stop hooks.
errs := logic.Stop()
for _, err := range errs {
errChan <- err
}
close(errChan)
}()