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:
Fabiano Fidêncio 2015-03-26 16:26:06 +01:00
parent f580f1ea54
commit dc2dd055d4

View File

@ -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)