]> git.0d.be Git - empathy.git/commitdiff
Allow stop to be called if there isn't a backing channel
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 21 Jul 2009 23:16:23 +0000 (00:16 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 21 Jul 2009 23:16:23 +0000 (00:16 +0100)
libempathy/empathy-tp-roomlist.c

index e369373f85fad7b4956ad7e33b4656b77767966e..54d2323398af1b4bfb722c99b96a4eb87d7332c5 100644 (file)
@@ -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,