summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/virt-viewer.c')
-rw-r--r--src/virt-viewer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer.c b/src/virt-viewer.c
index 9c3ccc9..637b9e4 100644
--- a/src/virt-viewer.c
+++ b/src/virt-viewer.c
@@ -161,7 +161,7 @@ virt_viewer_deactivated(VirtViewerApp *app, gboolean connect_error)
priv->dom = NULL;
}
- if (priv->reconnect) {
+ if (priv->reconnect && !virt_viewer_app_get_session_cancelled(app)) {
if (priv->domain_event < 0) {
g_debug("No domain events, falling back to polling");
virt_viewer_start_reconnect_poll(self);