aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-07-03 14:32:29 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-07-03 14:32:29 +0200
commit99995b7aefca4e91a72c032852e828466e2061ae (patch)
tree5971da73853041b4d1b1707caef97a95840b8ab8
parent645ad0756cf746c632da7af78009d6c915253fa2 (diff)
downloadvconsole-99995b7aefca4e91a72c032852e828466e2061ae.tar.gz
drop vanished transient domains
-rw-r--r--domain.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/domain.c b/domain.c
index 356cb83..fbbdec8 100644
--- a/domain.c
+++ b/domain.c
@@ -620,7 +620,11 @@ void domain_update(struct vconsole_connect *conn,
}
/* update guest info */
- domain_update_info(dom, d);
+ if (domain_update_info(dom, d) != 0) {
+ gtk_tree_store_remove(conn->win->store, &guest);
+ domain_free(dom);
+ return;
+ }
/* update tree store cols */
domain_update_tree_store(dom, &guest);