[Spice-devel] [PATCH 06/10] server/reds: don't remove agent if it's not connected

Hans de Goede hdegoede at redhat.com
Wed Jan 12 23:45:01 PST 2011


Ack.

On 01/13/2011 06:01 AM, Alon Levy wrote:
> ---
>   server/reds.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/server/reds.c b/server/reds.c
> index 30a1b0c..97e4623 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -2537,7 +2537,7 @@ static void spice_server_char_device_remove_interface(SpiceBaseInstance *sin)
>
>       red_printf("remove CHAR_DEVICE %s", char_device->subtype);
>       if (strcmp(char_device->subtype, SUBTYPE_VDAGENT) == 0) {
> -        if (vdagent) {
> +        if (vdagent&&  reds->agent_state.connected) {
>               reds_agent_remove();
>           }
>       }


More information about the Spice-devel mailing list