mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-02-08 05:57:29 +03:00
virt-viewer: Do not wait for a guest that will never show up
All the situations where virt_viewer_update_display() can fail are those when we won't be able to connect regardless of what changes on the remote host. So, propagate the error instead of waiting for the guest to start. Related: rhbz#1085216
This commit is contained in:
parent
f580f1ea54
commit
dc2dd055d4
@ -771,7 +771,7 @@ virt_viewer_initial_connect(VirtViewerApp *app, GError **error)
|
||||
}
|
||||
|
||||
if (!virt_viewer_update_display(self, dom, &err))
|
||||
goto wait;
|
||||
goto cleanup;
|
||||
|
||||
ret = VIRT_VIEWER_APP_CLASS(virt_viewer_parent_class)->initial_connect(app, &err);
|
||||
if (ret || err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user