summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-11-06 16:46:44 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-11-07 13:55:37 +0000
commit64b405cb025a00c3962a415dd90119771517cf6a (patch)
tree00515a082657501d6d26998357f4dc4e77bf8a85
parent3a068ebe96a0586247f4f597877a0dab78b47779 (diff)
muc_factory_broadcast_presence(): don't crash if disconnected
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=52362 (I hope)
-rw-r--r--src/muc-factory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/muc-factory.c b/src/muc-factory.c
index 4cc7e21b8..f734c13cc 100644
--- a/src/muc-factory.c
+++ b/src/muc-factory.c
@@ -830,6 +830,9 @@ gabble_muc_factory_broadcast_presence (GabbleMucFactory *self)
GHashTableIter iter;
gpointer channel = NULL;
+ if (priv->text_channels == NULL)
+ return;
+
g_hash_table_iter_init (&iter, priv->text_channels);
while (g_hash_table_iter_next (&iter, NULL, &channel))