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:
bin 2021-10-26 11:58:26 +08:00
parent 3d0fe433c6
commit 5f306330f4

View File

@ -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