aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-call.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r--libempathy/empathy-tp-call.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index 97b8bce1d..66fd3f870 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -775,21 +775,8 @@ const gchar *
empathy_tp_call_get_connection_manager (EmpathyTpCall *self)
{
EmpathyTpCallPriv *priv = GET_PRIV (self);
- TpConnection *conn;
- TpAccount *account;
-
- if (priv->channel == NULL)
- return NULL;
-
- conn = tp_channel_borrow_connection (priv->channel);
- if (conn == NULL)
- return NULL;
-
- account = empathy_get_account_for_connection (conn);
- if (account == NULL)
- return NULL;
- return tp_account_get_connection_manager (account);
+ return tp_account_get_connection_manager (priv->account);
}
gboolean