diff options
| author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-06 16:46:44 +0000 |
|---|---|---|
| committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-06 16:47:20 +0000 |
| commit | 1bd50bc9f5e1cab09b506cea8dd1985b98dfe5e1 (patch) | |
| tree | 7fb81b2dfe9f7a9864215cb706c896b97db89a56 | |
| parent | d300a2e432294c77a55cdc45cd5d7b3f653e13ff (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/muc-factory.c b/src/muc-factory.c index 011957130..47e183a93 100644 --- a/src/muc-factory.c +++ b/src/muc-factory.c @@ -817,6 +817,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)) |
