mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
libxl: only disable domain death events in libxlDomainCleanup
Remove disabling domain death events from libxlDomainStart error path. The domain death event is already disabled in libxlDomainCleanup. Signed-off-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
45fc2c1436
commit
e23a640c42
@ -1144,10 +1144,6 @@ libxlDomainStart(libxlDriverPrivatePtr driver, virDomainObjPtr vm,
|
|||||||
|
|
||||||
destroy_dom:
|
destroy_dom:
|
||||||
ret = -1;
|
ret = -1;
|
||||||
if (priv->deathW) {
|
|
||||||
libxl_evdisable_domain_death(cfg->ctx, priv->deathW);
|
|
||||||
priv->deathW = NULL;
|
|
||||||
}
|
|
||||||
libxlDomainDestroyInternal(driver, vm);
|
libxlDomainDestroyInternal(driver, vm);
|
||||||
vm->def->id = -1;
|
vm->def->id = -1;
|
||||||
virDomainObjSetState(vm, VIR_DOMAIN_SHUTOFF, VIR_DOMAIN_SHUTOFF_FAILED);
|
virDomainObjSetState(vm, VIR_DOMAIN_SHUTOFF, VIR_DOMAIN_SHUTOFF_FAILED);
|
||||||
|
Loading…
Reference in New Issue
Block a user