mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +08:00
fix(cli) tear down node
This commit is contained in:

committed by
Juan Batiz-Benet

parent
440c90be24
commit
084ffd97aa
@ -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)
|
||||
|
Reference in New Issue
Block a user