Re: [PATCH spice-gtk 1/2] session: remove channels on disconnect

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

 



On Thu, Nov 13, 2014 at 09:03:15AM -0500, Marc-André Lureau wrote:
> 
> I imagine delaying session_disconnect() in idle (while holding a ref)
> could work, but will bring additional issues due to its async nature.
> 
> Any other idea?

It seems delaying to idle works according to your other email. If this
causes issues, an alternative for now might be to mark the channels as
dead in spice_session_disconnect after calling spice_channel_destroy(),
and then complain loudly in spice_channel_destroy() and do not do the
unref when the object is already marked as being dead. I haven't tried
to write code for that, so I don't know how realistic this is, but it
looks like this could work, and that this would allow a transitional
period while applications are being fixed.

However, if an idle works, it's much better than this suggestion.

Christophe

Attachment: pgpwpudWeuFEa.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]