[Spice-devel] [spice-gtk 2/5] spicy: do not flush and disconnect all kind of ports
Christophe Fergeau
cfergeau at redhat.com
Tue Feb 4 05:45:33 PST 2014
On Wed, Jan 22, 2014 at 07:26:48PM +0100, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau at redhat.com>
>
> 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
-------------- 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/20140204/b1bcdab5/attachment.pgp>
More information about the Spice-devel
mailing list