mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +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
|
||||
IProgress *progress;
|
||||
console->vtbl->PowerDown(console, &progress);
|
||||
if (progress)
|
||||
if (progress) {
|
||||
progress->vtbl->WaitForCompletion(progress, -1);
|
||||
progress->vtbl->nsisupports.Release((nsISupports *)progress);
|
||||
}
|
||||
#endif
|
||||
console->vtbl->nsisupports.Release((nsISupports *)console);
|
||||
ret = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user