[Telepathy] [Bug 18207] New: TpConnectionManager: got-info sometimes fires before tp_list_connection_managers' callback fires

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 24 10:06:33 PDT 2008


           Summary: TpConnectionManager:got-info sometimes fires before
                    tp_list_connection_managers' callback fires
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-glib
        AssignedTo: telepathy at lists.freedesktop.org
        ReportedBy: will.thompson at collabora.co.uk

tp_list_connection_managers is implemented as follows:

 * Asynchronously, call ListActivableNames
 * For each returned name, if it looks like a connection manager, add it to a
map from name ⇒ TpCM
 * Asynchronously, call ListNames
 * For each returned name, if it looks like a CM and isn't already in the map,
add it.
 * Now call the callback passed to tp_list_connection_managers

When you construct a TpCM, an idle callback is added to read the .manager file;
when it's read, got-info fires on the TpCM.

The intention is that when tp_list_connection_managers calls the user-supplied
callback, none of the CMs have had their .manager files read, or been
introspected. However, the idle callbacks to read from the .manager file might
have already been called, so any given TpCM's got-info(CACHED) signal might
already have fired. So the callback gets a list of TpCMs in different states.

This is undesirable. :-)

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 mailing list