[empathy/mc5: 152/483] Allow stop to be called if there isn't a backing channel



commit f3e15cee01791e3e6a4b624450fea6167aa02c31
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Wed Jul 22 00:16:23 2009 +0100

    Allow stop to be called if there isn't a backing channel

 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 e369373..54d2323 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]