From ec997377c0765b3d1619120c501433799740edba Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Mon, 16 May 2011 10:00:08 +0100 Subject: tp-chat: don't assert on not finding message Signed-off-by: Jonny Lamb --- libempathy/empathy-tp-chat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 1b45ec02a..670ac11af 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); -- cgit v1.2.3