[Spice-devel] [PATCH 06/10] server/reds: don't remove agent if it's not connected

Alon Levy alevy at redhat.com
Wed Jan 12 21:01:39 PST 2011


---
 server/reds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index 30a1b0c..97e4623 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2537,7 +2537,7 @@ static void spice_server_char_device_remove_interface(SpiceBaseInstance *sin)
 
     red_printf("remove CHAR_DEVICE %s", char_device->subtype);
     if (strcmp(char_device->subtype, SUBTYPE_VDAGENT) == 0) {
-        if (vdagent) {
+        if (vdagent && reds->agent_state.connected) {
             reds_agent_remove();
         }
     }
-- 
1.7.3.4



More information about the Spice-devel mailing list