Skip to content

Commit

Permalink
fix: close cri (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzchaoo authored Oct 16, 2023
1 parent 02e558f commit b62baeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ func (b *AgentBootstrap) setupDaemonAgent() error {
if err := b.setupCRI(); err != nil {
return err
}
b.AddStopComponents(ioc.Crii)

// system metrics
{
Expand Down Expand Up @@ -355,7 +356,7 @@ func (b *AgentBootstrap) setupDaemonAgent() error {
bsm := bistream.NewManager(ioc.RegistryService, bizbistream.GetBiStreamHandlerRegistry())

b.TM = manager.NewTransferManager(b.PM, b.LSM)
b.TM.AddStopComponents(b.httpServerComponent, ctm, bsm, b.AM)
b.TM.AddStopComponents(b.httpServerComponent, ctm, bsm, b.AM, ioc.Crii)
if err := b.TM.Transfer(); err != nil {
logger.Errorz("[transfer] error", zap.Error(err))
}
Expand Down

0 comments on commit b62baeb

Please sign in to comment.