mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 18:05:20 +00:00
VBox vboxDomainDestroy forgot to wait for completion
* src/vbox/vbox_tmpl.c: the vboxDomainDestroy forgot to wait for completion of the PowerDown command
This commit is contained in:
parent
d9b285d7e8
commit
970135f6bc
@ -1328,8 +1328,10 @@ static int vboxDomainDestroy(virDomainPtr dom) {
|
|||||||
#else
|
#else
|
||||||
IProgress *progress;
|
IProgress *progress;
|
||||||
console->vtbl->PowerDown(console, &progress);
|
console->vtbl->PowerDown(console, &progress);
|
||||||
if (progress)
|
if (progress) {
|
||||||
|
progress->vtbl->WaitForCompletion(progress, -1);
|
||||||
progress->vtbl->nsisupports.Release((nsISupports *)progress);
|
progress->vtbl->nsisupports.Release((nsISupports *)progress);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
console->vtbl->nsisupports.Release((nsISupports *)console);
|
console->vtbl->nsisupports.Release((nsISupports *)console);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user