aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2011-05-16 17:00:08 +0800
committerJonny Lamb <jonnylamb@gnome.org>2011-05-16 17:00:08 +0800
commitec997377c0765b3d1619120c501433799740edba (patch)
tree5a4168dd51ff94fdd7ee2d5067dedcb261b461e1
parent1c40d3370a1d2e1e98b1609377e0903a2ca40f6f (diff)
downloadgsoc2013-empathy-ec997377c0765b3d1619120c501433799740edba.tar
gsoc2013-empathy-ec997377c0765b3d1619120c501433799740edba.tar.gz
gsoc2013-empathy-ec997377c0765b3d1619120c501433799740edba.tar.bz2
gsoc2013-empathy-ec997377c0765b3d1619120c501433799740edba.tar.lz
gsoc2013-empathy-ec997377c0765b3d1619120c501433799740edba.tar.xz
gsoc2013-empathy-ec997377c0765b3d1619120c501433799740edba.tar.zst
gsoc2013-empathy-ec997377c0765b3d1619120c501433799740edba.zip
tp-chat: don't assert on not finding message
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
-rw-r--r--libempathy/empathy-tp-chat.c4
1 files changed, 3 insertions, 1 deletions
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);