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:
Pritesh Kothari 2009-09-29 17:41:04 +02:00 committed by Daniel Veillard
parent d9b285d7e8
commit 970135f6bc

View File

@ -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;