mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
virtcontainers: delete duplicated notify in watchHypervisor function
When hypervisor check failed, the notify function is called twice. Fixes: #2901 Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
parent
3d0fe433c6
commit
5f306330f4
@ -142,7 +142,6 @@ func (m *monitor) watchAgent(ctx context.Context) {
|
||||
func (m *monitor) watchHypervisor(ctx context.Context) error {
|
||||
if err := m.sandbox.hypervisor.Check(); err != nil {
|
||||
m.notify(ctx, errors.Wrapf(err, "failed to ping hypervisor process"))
|
||||
m.notify(ctx, errors.Wrapf(err, "failed to ping Hypervisor process"))
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user