From 970135f6bc7f3a3ee891306384da3cd6b6a15835 Mon Sep 17 00:00:00 2001 From: Pritesh Kothari Date: Tue, 29 Sep 2009 17:41:04 +0200 Subject: [PATCH] VBox vboxDomainDestroy forgot to wait for completion * src/vbox/vbox_tmpl.c: the vboxDomainDestroy forgot to wait for completion of the PowerDown command --- src/vbox/vbox_tmpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- GitLab