mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-04 22:43:43 +00:00
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 .
This commit is contained in:
parent
00a03b7633
commit
3953b9ff1b
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user