[Spice-devel] [PATCH spice-gtk] spicy: do not flush and disconnect all kind of ports

Christophe Fergeau cfergeau at redhat.com
Wed Feb 5 00:37:50 PST 2014


ACK

On Tue, Feb 04, 2014 at 03:38:06PM +0100, Marc-André Lureau wrote:
> Some ports may want to live a bit longer, such as following webdav.
> ---
>  gtk/spicy.c | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/gtk/spicy.c b/gtk/spicy.c
> index dff9d44..3e280a0 100644
> --- a/gtk/spicy.c
> +++ b/gtk/spicy.c
> @@ -1475,24 +1475,18 @@ static void port_opened(SpiceChannel *channel, GParamSpec *pspec,
>          /* only send a break event and disconnect */
>          if (g_strcmp0(name, "org.spice.spicy.break") == 0) {
>              spice_port_event(port, SPICE_PORT_EVENT_BREAK);
> +            spice_channel_flush_async(channel, NULL, port_flushed_cb, conn);
>          }
>  
>          /* handle the first spicy port and connect it to stdin/out */
>          if (g_strcmp0(name, "org.spice.spicy") == 0 && stdin_port == NULL) {
>              stdin_port = port;
> -            goto end;
>          }
> -
> -        if (port == stdin_port)
> -            goto end;
> -
> -        spice_channel_flush_async(channel, NULL, port_flushed_cb, conn);
>      } else {
>          if (port == stdin_port)
>              stdin_port = NULL;
>      }
>  
> -end:
>      g_free(name);
>  }
>  
> -- 
> 1.8.4.2
> 
> _______________________________________________
> 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: 181 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140205/be6b8c18/attachment.pgp>


More information about the Spice-devel mailing list