[Bug 20946] New: Closed D-Bus and GObject signals fired together make code nasty

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 30 15:29:26 CEST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20946

           Summary: Closed D-Bus and GObject signals fired together make
                    code nasty
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-glib
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: guillaume.desmottes at collabora.co.uk


Channels have to fire the D-Bus Closed signal when disposing (if the channel
was not already closed of course). Most of the channel managers catch the
GObject closed signal so they can drop their ref when the channel has been
closed.

Currently all the channels mgr do this kind of trick when closing all the
channels:
      GHashTable *tmp = priv->tubes_channels;
      priv->tubes_channels = NULL;
      g_hash_table_destroy (tmp);

So the closed callback knows we are disposing and do nothing.

We could avoid these hacks by not firing the GObject signal when disposing.  
Unfortunately that's currently not possible.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the telepathy-bugs mailing list