1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 08:47:42 +08:00

repo is owned by node, so close the node

This commit is contained in:
Brian Tiger Chow
2015-01-30 15:19:33 -08:00
parent c7f922b5fc
commit 951ff4f747

View File

@ -97,7 +97,6 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
res.SetError(debugerror.Errorf("Couldn't obtain lock. Is another daemon already running?"), cmds.ErrNormal)
return
}
defer repo.Close()
// OK!!! Now we're ready to construct the node.
// make sure we construct an online node.