aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-filter.c')
-rw-r--r--libempathy/empathy-filter.c12
1 files changed, 9 insertions, 3 deletions
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,