Ack.

On 01/13/2011 06:01 AM, Alon Levy wrote:
---
  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();
          }
      }
_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to