From: Pritesh Kothari Date: Tue, 29 Sep 2009 15:41:04 +0000 (+0200) Subject: VBox vboxDomainDestroy forgot to wait for completion X-Git-Tag: v0.7.2~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=970135f6bc7f3a3ee891306384da3cd6b6a15835;p=thirdparty%2Flibvirt.git VBox vboxDomainDestroy forgot to wait for completion * src/vbox/vbox_tmpl.c: the vboxDomainDestroy forgot to wait for completion of the PowerDown command --- diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index bab3ce40d9..1980fabe22 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -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;