提交 970135f6 编写于 作者: P Pritesh Kothari 提交者: Daniel Veillard

VBox vboxDomainDestroy forgot to wait for completion

* src/vbox/vbox_tmpl.c: the vboxDomainDestroy forgot to wait for
  completion of the PowerDown command
上级 d9b285d7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册