[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] bug in vboxDomainDestroy in vbox driver



Hi All,

There is bug in vboxDomainDestroy() where in the while powerdown the method 
doesn't wait till its completion.
Fix in the attached patch.

Regards,
Pritesh
diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c
index 07515fe..65e3449 100644
--- a/src/vbox/vbox_tmpl.c
+++ b/src/vbox/vbox_tmpl.c
@@ -1333,8 +1333,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;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]