Re: [spice-gtk 2/5] spicy: do not flush and disconnect all kind of ports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 22, 2014 at 07:26:48PM +0100, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> 
> Some ports may want to live a bit longer, such as following webdav.
> ---
>  gtk/spicy.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/gtk/spicy.c b/gtk/spicy.c
> index dff9d44..39ff0e3 100644
> --- a/gtk/spicy.c
> +++ b/gtk/spicy.c
> @@ -1475,6 +1475,7 @@ 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 */
> @@ -1485,8 +1486,6 @@ static void port_opened(SpiceChannel *channel, GParamSpec *pspec,
>  
>          if (port == stdin_port)
>              goto end;
> -
> -        spice_channel_flush_async(channel, NULL, port_flushed_cb, conn);

Seems this can be further simplified by removing the 'end' label.

Christophe

Attachment: pgpL4g2YF01XS.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]