mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
libxl: remove redundant calls to virObjectEventStateQueue
In libxlDomainShutdownThread, virObjectEventStateQueue is needlessly called in the destroy and restart labels. The cleanup label aready queues whatever event was created based on libxl_shutdown_reason. There is no need to handle destroy and restart differently. Signed-off-by: Jim Fehlig <jfehlig@suse.com> ACKed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e08e792493
commit
14d03b27bf
@ -538,8 +538,6 @@ libxlDomainShutdownThread(void *opaque)
|
||||
}
|
||||
|
||||
destroy:
|
||||
virObjectEventStateQueue(driver->domainEventState, dom_event);
|
||||
dom_event = NULL;
|
||||
libxlDomainDestroyInternal(driver, vm);
|
||||
libxlDomainCleanup(driver, vm);
|
||||
if (!vm->persistent)
|
||||
@ -548,8 +546,6 @@ libxlDomainShutdownThread(void *opaque)
|
||||
goto endjob;
|
||||
|
||||
restart:
|
||||
virObjectEventStateQueue(driver->domainEventState, dom_event);
|
||||
dom_event = NULL;
|
||||
libxlDomainDestroyInternal(driver, vm);
|
||||
libxlDomainCleanup(driver, vm);
|
||||
if (libxlDomainStartNew(driver, vm, false) < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user