[Spice-commits] server/reds.c

Hans de Goede jwrdegoede at kemper.freedesktop.org
Thu Jul 21 05:58:02 PDT 2011


 server/reds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 765948d449338d0dd99e003d4a1158b8b8d26cf1
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Thu Jul 21 14:57:35 2011 +0200

    server: make sure we clear vdagent and update mouse mode on agent disconnect
    
    The check this patch removes causes us to not set vdagent to NULL, nor
    update the mouse mode when the guest agent disconnects when no client is
    attached. Which leads to a non working mouse, and on agent reconnect a
    "spice_server_char_device_add_interface: vdagent already attached" message
    instead of a successful re-add of the agent interface .
    
    hansg: Note this is commit 443994ba from the 0.8 branch, which I did
    not forward port back then because it seemed unnecessary on master, but it
    turns out that the (wrong) check was just hidden in another place on master.

diff --git a/server/reds.c b/server/reds.c
index ee24e87..e9694c0 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3249,7 +3249,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 && reds->agent_state.connected) {
+        if (vdagent) {
             reds_agent_remove();
         }
     }


More information about the Spice-commits mailing list