fix(cli) tear down node

This commit is contained in:
Brian Tiger Chow 2014-11-07 01:51:13 -08:00 committed by Juan Batiz-Benet
parent 440c90be24
commit 084ffd97aa

View File

@ -177,6 +177,7 @@ func callCommand(req cmds.Request, root *cmds.Command) cmds.Response {
fmt.Println(err)
os.Exit(1)
}
defer node.Close()
req.Context().Node = node
res = root.Call(req)