diff options
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-chandler.c | 11 | ||||
-rw-r--r-- | libempathy/empathy-filter.c | 12 |
2 files changed, 17 insertions, 6 deletions
diff --git a/libempathy/empathy-chandler.c b/libempathy/empathy-chandler.c index 3586e97a4..2ebbde968 100644 --- a/libempathy/empathy-chandler.c +++ b/libempathy/empathy-chandler.c @@ -129,9 +129,14 @@ empathy_chandler_handle_channel (EmpathyChandler *chandler, TpChan *tp_chan; TpConn *tp_conn; - tp_conn = tp_conn_new (tp_get_bus (), - bus_name, - connection); + tp_conn = tp_conn_new_without_connect (tp_get_bus (), + bus_name, + connection, + NULL, + error); + if (!tp_conn) { + return FALSE; + } tp_chan = tp_chan_new (tp_get_bus(), bus_name, diff --git a/libempathy/empathy-filter.c b/libempathy/empathy-filter.c index f28d182c1..700f9819b 100644 --- a/libempathy/empathy-filter.c +++ b/libempathy/empathy-filter.c @@ -214,9 +214,15 @@ empathy_filter_filter_channel (EmpathyFilter *filter, priv = GET_PRIV (filter); - tp_conn = tp_conn_new (tp_get_bus (), - bus_name, - connection); + tp_conn = tp_conn_new_without_connect (tp_get_bus (), + bus_name, + connection, + NULL, + error); + if (!tp_conn) { + return FALSE; + } + tp_chan = tp_chan_new (tp_get_bus(), bus_name, |