Kaydet (Commit) b5935dea authored tarafından Will Thompson's avatar Will Thompson Kaydeden (comit) Matúš Kukan

tubes: add a hack to give time for caps to propagate :(

üst bc88b6ea
......@@ -602,6 +602,12 @@ bool TeleManager::startBuddySession( TpAccount *pAccount, TpContact *pBuddy )
}
static gboolean timeout_cb( void* pData)
{
g_main_loop_quit( reinterpret_cast<GMainLoop*>( pData));
return FALSE;
}
void TeleManager::prepareAccountManager()
{
INFO_LOGGER( "TeleManager::prepareAccountManager");
......@@ -634,6 +640,11 @@ void TeleManager::prepareAccountManager()
tp_proxy_prepare_async( pImpl->mpAccountManager, NULL, TeleManager_AccountManagerReadyHandler, this);
iterateLoop( &TeleManager::isAccountManagerReadyHandlerInvoked);
/* Hack to make sure that our capabilities update from one account has
* propagated via the network and back to the other account. Sorry. */
g_timeout_add_seconds( 2, timeout_cb, pImpl->mpLoop);
g_main_loop_run( pImpl->mpLoop);
}
......
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