1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-25 23:21:54 +08:00

feat(core) add shutdown message

This commit is contained in:
Brian Tiger Chow
2015-01-28 10:16:19 -08:00
parent a9573058f5
commit 88fa7388de

View File

@ -277,6 +277,7 @@ func (n *IpfsNode) startOnlineServicesWithHost(ctx context.Context, maybeRouter
// teardown closes owned children. If any errors occur, this function returns
// the first error.
func (n *IpfsNode) teardown() error {
log.Debug("core is shutting down...")
// owned objects are closed in this teardown to ensure that they're closed
// regardless of which constructor was used to add them to the node.
closers := []io.Closer{