diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-17 23:04:02 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-07 21:32:34 +0200 |
commit | ec0b90db7fc4e0e27130d0b1bec662ffd7b2ce56 (patch) | |
tree | 5745361109a46f2efbedb3b59111cf3b937fef9f /server/inputs_channel.c | |
parent | 1540a64030cc82556e6a98230656b17c2ccf4dae (diff) | |
download | spice-ec0b90db7fc4e0e27130d0b1bec662ffd7b2ce56.tar.gz spice-ec0b90db7fc4e0e27130d0b1bec662ffd7b2ce56.tar.xz spice-ec0b90db7fc4e0e27130d0b1bec662ffd7b2ce56.zip |
server/inputs_channel: better protection from channel disconnection on keyboard modifiers callback
Diffstat (limited to 'server/inputs_channel.c')
-rw-r--r-- | server/inputs_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c index f5f1d732..de62bfe5 100644 --- a/server/inputs_channel.c +++ b/server/inputs_channel.c @@ -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); |