Re: [PATCHv2 01/10] channel: delay event report to after coroutine exit

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

 



done

----- Original Message -----
> On Tue, Jan 27, 2015 at 02:53:14PM +0100, Marc-André Lureau wrote:
> > @@ -2157,9 +2156,8 @@ static gboolean spice_channel_iterate(SpiceChannel
> > *channel)
> >          if (ret & (G_IO_ERR|G_IO_HUP)) {
> >              CHANNEL_DEBUG(channel, "channel got error");
> >              if (c->state > SPICE_CHANNEL_STATE_CONNECTING) {
> > -                g_coroutine_signal_emit(channel,
> > signals[SPICE_CHANNEL_EVENT], 0,
> > -                                        c->state ==
> > SPICE_CHANNEL_STATE_READY ?
> > -                                        SPICE_CHANNEL_ERROR_IO :
> > SPICE_CHANNEL_ERROR_LINK);
> > +                c->event = c->state == SPICE_CHANNEL_STATE_READY ?
> > +                    SPICE_CHANNEL_ERROR_IO : SPICE_CHANNEL_ERROR_LINK;
> 
> if (c->state == SPICE_CHANNEL_STATE_READY)
>     c->event = SPICE_CHANNEL_ERROR_IO;
> else
>     c->event = SPICE_CHANNEL_ERROR_LINK;
> 
> would be much more readable imo.
> ACK apart from this.
> 
> Christophe
> 
_______________________________________________
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]