mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-09 04:39:17 +00:00
Merge pull request #556 from evanfoster/shutdown-agent
sandbox: Disconnect from agent after VM shutdown
This commit is contained in:
@@ -1623,6 +1623,11 @@ func (s *Sandbox) Stop(force bool) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Stop communicating with the agent.
|
||||
if err := s.agent.disconnect(); err != nil && !force {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user