summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-04-01 16:46:55 +0200
committerHans de Goede <hdegoede@redhat.com>2011-04-04 11:53:47 +0200
commit3953b9ff1b46441077471baed9ef5173cf4eb448 (patch)
tree0d8d03808b157ccf2a0105d234b587df2ca0f1be
parent00a03b7633fd30180f7adc83afd376dc6765f32f (diff)
downloadspice-3953b9ff1b46441077471baed9ef5173cf4eb448.tar.gz
spice-3953b9ff1b46441077471baed9ef5173cf4eb448.tar.xz
spice-3953b9ff1b46441077471baed9ef5173cf4eb448.zip
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 .
-rw-r--r--server/reds.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/reds.c b/server/reds.c
index b24eb02e..cd86ab94 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -717,9 +717,6 @@ static void reds_agent_remove()
reds_reset_vdp();
}
- if (!reds->agent_state.connected) {
- return;
- }
reds->agent_state.connected = 0;
vdagent = NULL;
reds_update_mouse_mode();