Xavier's previous patch delayed calling accept() until the channel was
in the INITIALISED state, however, if the channel is already in the
INITIALISED state by the time we receive it, we should just accept
immediately. Otherwise we'll spend our lives waiting for a state
transition that will never occur.
if (priv->call != NULL)
{
empathy_call_handler_start_tpfs (handler);
- priv->accept_when_initialised = TRUE;
+
+ if (tp_call_channel_get_state (priv->call, NULL, NULL, NULL) ==
+ TP_CALL_STATE_INITIALISED)
+ tp_call_channel_accept_async (priv->call, on_call_accepted_cb, NULL);
+ else
+ priv->accept_when_initialised = TRUE;
+
return;
}