Kaydet (Commit) ce9bc65e authored tarafından Matúš Kukan's avatar Matúš Kukan

tubes: do not freeze when preparing Account Manager

We don't need to wait for our capabilities update to propagate from one
account via the network and back.
Since e3d1001c08d255c588ed6ca93f3b58b2161cce45 ContactList returns all
online contacts regardless of its capabilities.

Change-Id: Icf8982dd1e6aedec4f21920ff8020f8547d7b855
üst 98cd5f3f
......@@ -287,14 +287,6 @@ static void TeleManager_ChannelReadyHandler(
pConference->offerTube();
}
static gboolean caps_hack_timeout_cb (void *pUserData)
{
TeleManager* pManager = reinterpret_cast<TeleManager*>(pUserData);
pManager->setAccountManagerReadyHandlerInvoked( true);
return FALSE;
}
static void TeleManager_AccountManagerReadyHandler(
GObject* pSourceObject,
GAsyncResult* pResult,
......@@ -308,10 +300,6 @@ static void TeleManager_AccountManagerReadyHandler(
if (!pManager)
return;
// Hack
// pManager->setAccountManagerReadyHandlerInvoked( true);
g_timeout_add_seconds( 2, caps_hack_timeout_cb, pManager);
GError* pError = NULL;
gboolean bPrepared = tp_proxy_prepare_finish( pSourceObject, pResult, &pError);
SAL_WARN_IF( !bPrepared, "tubes", "TeleManager_AccountManagerReadyHandler: not prepared");
......@@ -322,6 +310,7 @@ static void TeleManager_AccountManagerReadyHandler(
}
pManager->setAccountManagerReady( bPrepared);
pManager->setAccountManagerReadyHandlerInvoked( true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment