]> xenbits.xensource.com Git - libvirt.git/commitdiff
VBox vboxDomainDestroy forgot to wait for completion
authorPritesh Kothari <Pritesh.Kothari@Sun.COM>
Tue, 29 Sep 2009 15:41:04 +0000 (17:41 +0200)
committerDaniel Veillard <veillard@redhat.com>
Tue, 29 Sep 2009 15:42:41 +0000 (17:42 +0200)
* src/vbox/vbox_tmpl.c: the vboxDomainDestroy forgot to wait for
  completion of the PowerDown command

src/vbox/vbox_tmpl.c

index bab3ce40d91c2675622d54eb6e1c85e194977fff..1980fabe2208aa7a8ddd34526f30f82cb3adf23d 100644 (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;