[telepathy-gabble/master] _gabble_connection_signal_own_presence: don't call gabble_muc_factory_broadcast_presence if we are closing

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 11 07:56:22 PDT 2009


In that case, the Muc factory is already disposed so we shouldn't try to
use it anymore.
---
 src/connection.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index cec689d..4e96fa5 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -1894,7 +1894,8 @@ _gabble_connection_signal_own_presence (GabbleConnection *self, GError **error)
   g_free (caps_hash);
   lm_message_unref (message);
 
-  gabble_muc_factory_broadcast_presence (self->muc_factory);
+  if (!self->priv->closing)
+    gabble_muc_factory_broadcast_presence (self->muc_factory);
 
   return ret;
 }
-- 
1.5.6.5




More information about the telepathy-commits mailing list