[Spice-devel] [PATCH 12/12] server/inputs_channel: better protection from channel disconnection on keyboard modifiers callback
Hans de Goede
hdegoede at redhat.com
Mon Dec 6 04:36:42 PST 2010
Ack.
On 12/06/2010 11:49 AM, Alon Levy wrote:
> ---
> 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 9129926..28db4e3 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);
More information about the Spice-devel
mailing list