mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
server/inputs_channel: better protection from channel disconnection on keyboard modifiers callback
This commit is contained in:
parent
1540a64030
commit
ec0b90db7f
@ -511,7 +511,7 @@ void inputs_send_keyboard_modifiers(uint8_t modifiers)
|
||||
InputsPipeItem *pipe_item;
|
||||
SpiceMarshaller *m;
|
||||
|
||||
if (!g_inputs_channel) {
|
||||
if (!g_inputs_channel || !red_channel_is_connected(&g_inputs_channel->base)) {
|
||||
return;
|
||||
}
|
||||
pipe_item = inputs_pipe_item_new(g_inputs_channel, PIPE_ITEM_KEY_MODIFIERS);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user