[Telepathy-commits] [telepathy-salut/master] salut_muc_channel_close: check if we are actually connected before calling gibber_muc_connection_disconnect
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Nov 26 09:04:07 PST 2008
---
src/salut-muc-channel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/salut-muc-channel.c b/src/salut-muc-channel.c
index adc4b9f..d3c7248 100644
--- a/src/salut-muc-channel.c
+++ b/src/salut-muc-channel.c
@@ -1324,7 +1324,8 @@ salut_muc_channel_close (TpSvcChannel *iface, DBusGMethodInvocation *context)
SalutMucChannel *self = SALUT_MUC_CHANNEL (iface);
SalutMucChannelPrivate *priv = SALUT_MUC_CHANNEL_GET_PRIVATE (self);
- gibber_muc_connection_disconnect (priv->muc_connection);
+ if (priv->connected)
+ gibber_muc_connection_disconnect (priv->muc_connection);
tp_svc_channel_return_from_close (context);
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list