diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-03-26 23:05:31 +0100 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-03-27 16:12:58 +0100 |
commit | f9c4a03bd76ca23b6eb715244b7019fddca0eb72 (patch) | |
tree | d2e63f3aef7e2f61e280d07973407cf205ebe3ce /src/virt-viewer.c | |
parent | cab8f7450b8af6111c50d563321e5e7e50944479 (diff) | |
download | virt-viewer-f9c4a03bd76ca23b6eb715244b7019fddca0eb72.tar.gz virt-viewer-f9c4a03bd76ca23b6eb715244b7019fddca0eb72.tar.xz virt-viewer-f9c4a03bd76ca23b6eb715244b7019fddca0eb72.zip |
virt-viewer-app: Add a GError arg to create_session()
This is part of a small re-factoring that will have all connection
errors, when we won't be able to connect regardless of what changes on
the remote host, being treated by virt_viewer_app_initial_connect(),
avoiding weird behaviors as we have nowadays (like more than one error
dialog being shown or having the virt-viewer waiting forever for a guest
that will never show up).
Related: rhbz#1085216
Diffstat (limited to 'src/virt-viewer.c')
-rw-r--r-- | src/virt-viewer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer.c b/src/virt-viewer.c index 7c73bc5..cba38e4 100644 --- a/src/virt-viewer.c +++ b/src/virt-viewer.c @@ -420,7 +420,7 @@ virt_viewer_extract_connect_info(VirtViewer *self, goto cleanup; } - if (virt_viewer_app_create_session(app, type) < 0) + if (virt_viewer_app_create_session(app, type, error) < 0) goto cleanup; xpath = g_strdup_printf("string(/domain/devices/graphics[@type='%s']/@port)", type); |