diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-22 07:16:23 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-22 07:16:23 +0800 |
commit | f3e15cee01791e3e6a4b624450fea6167aa02c31 (patch) | |
tree | 0cb98925a99f27132e685fe2a1f3810f3da752ca /libempathy | |
parent | df1cf218c8a219caa68fc2f95aed1df84a95382e (diff) | |
download | gsoc2013-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
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-roomlist.c | 4 |
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, |