[empathy: 20/22] tp-chat: don't assert on not finding message



commit ec997377c0765b3d1619120c501433799740edba
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Mon May 16 10:00:08 2011 +0100

    tp-chat: don't assert on not finding message
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 libempathy/empathy-tp-chat.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 1b45ec0..670ac11 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -475,7 +475,9 @@ pending_message_removed_cb (TpTextChannel   *channel,
 
 	m = g_queue_find_custom (priv->pending_messages_queue, message,
 				 find_pending_message_func);
-	g_assert (m != NULL);
+
+	if (m == NULL)
+		return;
 
 	g_signal_emit (chat, signals[MESSAGE_ACKNOWLEDGED], 0, m->data);
 



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