mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user