[Telepathy-commits] [telepathy-salut/master] salut_muc_channel_close: emit the closed signal directly if the muc wasn't connected (#18552)

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Nov 26 09:08:15 PST 2008


---
 src/salut-muc-channel.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/salut-muc-channel.c b/src/salut-muc-channel.c
index d3c7248..da394ec 100644
--- a/src/salut-muc-channel.c
+++ b/src/salut-muc-channel.c
@@ -1325,7 +1325,13 @@ salut_muc_channel_close (TpSvcChannel *iface, DBusGMethodInvocation *context)
   SalutMucChannelPrivate *priv = SALUT_MUC_CHANNEL_GET_PRIVATE (self);
 
   if (priv->connected)
-    gibber_muc_connection_disconnect (priv->muc_connection);
+    {
+      gibber_muc_connection_disconnect (priv->muc_connection);
+    }
+  else
+    {
+      tp_svc_channel_emit_closed (self);
+    }
 
   tp_svc_channel_return_from_close (context);
 }
-- 
1.5.6.5



More information about the Telepathy-commits mailing list