aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-22 07:16:23 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-22 07:16:23 +0800
commitf3e15cee01791e3e6a4b624450fea6167aa02c31 (patch)
tree0cb98925a99f27132e685fe2a1f3810f3da752ca
parentdf1cf218c8a219caa68fc2f95aed1df84a95382e (diff)
downloadgsoc2013-empathy-f3e15cee01791e3e6a4b624450fea6167aa02c31.tar
gsoc2013-empathy-f3e15cee01791e3e6a4b624450fea6167aa02c31.tar.gz
gsoc2013-empathy-f3e15cee01791e3e6a4b624450fea6167aa02c31.tar.bz2
gsoc2013-empathy-f3e15cee01791e3e6a4b624450fea6167aa02c31.tar.lz
gsoc2013-empathy-f3e15cee01791e3e6a4b624450fea6167aa02c31.tar.xz
gsoc2013-empathy-f3e15cee01791e3e6a4b624450fea6167aa02c31.tar.zst
gsoc2013-empathy-f3e15cee01791e3e6a4b624450fea6167aa02c31.zip
Allow stop to be called if there isn't a backing channel
-rw-r--r--libempathy/empathy-tp-roomlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-roomlist.c b/libempathy/empathy-tp-roomlist.c
index e369373f8..54d232339 100644
--- a/libempathy/empathy-tp-roomlist.c
+++ b/libempathy/empathy-tp-roomlist.c
@@ -518,6 +518,10 @@ empathy_tp_roomlist_stop (EmpathyTpRoomlist *list)
EmpathyTpRoomlistPriv *priv = GET_PRIV (list);
g_return_if_fail (EMPATHY_IS_TP_ROOMLIST (list));
+
+ if (priv->channel == NULL)
+ return;
+
g_return_if_fail (TP_IS_CHANNEL (priv->channel));
tp_cli_channel_type_room_list_call_stop_listing (priv->channel, -1,