]> git.0d.be Git - empathy.git/commitdiff
tp-chat: don't assert on not finding message
authorJonny Lamb <jonnylamb@gnome.org>
Mon, 16 May 2011 09:00:08 +0000 (10:00 +0100)
committerJonny Lamb <jonnylamb@gnome.org>
Mon, 16 May 2011 09:00:08 +0000 (10:00 +0100)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy/empathy-tp-chat.c

index 1b45ec02a7e90669c12a6bfea672e7ba6b2f1a6f..670ac11afb6544ae971d96d0b431628f5cccc866 100644 (file)
@@ -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);