[Spice-devel] [PATCH spice-gtk 07/16] channel-main: Reset agent message receive state on agent stop

Christophe Fergeau cfergeau at redhat.com
Mon Apr 8 09:27:16 PDT 2013


ACK

Christophe

On Fri, Mar 29, 2013 at 12:40:19PM +0100, Hans de Goede wrote:
> Discard any partially received messages from the agent on agent stop.
> 
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
>  gtk/channel-main.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/gtk/channel-main.c b/gtk/channel-main.c
> index 672fbcf..8e8a3a5 100644
> --- a/gtk/channel-main.c
> +++ b/gtk/channel-main.c
> @@ -1362,11 +1362,8 @@ static void agent_start(SpiceMainChannel *channel)
>  /* coroutine context  */
>  static void agent_stopped(SpiceMainChannel *channel)
>  {
> -    SpiceMainChannelPrivate *c = SPICE_MAIN_CHANNEL(channel)->priv;
> -
> -    set_agent_connected(channel, FALSE);
> -    c->agent_caps_received = false;
> -    c->agent_display_config_sent = false;
> +    spice_main_channel_reset_agent(channel);
> +    set_agent_connected(channel, FALSE); /* For notify */
>      emit_main_context(channel, SPICE_MAIN_AGENT_UPDATE);
>  }
>  
> -- 
> 1.8.1.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130408/0e2380a9/attachment.pgp>


More information about the Spice-devel mailing list