aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-18 17:33:49 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-18 17:46:02 +0800
commit2467d9a5ff47486ec71427763afd4a7e1e300b20 (patch)
tree03ff52386c97772eab9fec84c0f0cb11217c2687
parent46657275627702864348674f8c6397df922d7d45 (diff)
downloadgsoc2013-empathy-2467d9a5ff47486ec71427763afd4a7e1e300b20.tar
gsoc2013-empathy-2467d9a5ff47486ec71427763afd4a7e1e300b20.tar.gz
gsoc2013-empathy-2467d9a5ff47486ec71427763afd4a7e1e300b20.tar.bz2
gsoc2013-empathy-2467d9a5ff47486ec71427763afd4a7e1e300b20.tar.lz
gsoc2013-empathy-2467d9a5ff47486ec71427763afd4a7e1e300b20.tar.xz
gsoc2013-empathy-2467d9a5ff47486ec71427763afd4a7e1e300b20.tar.zst
gsoc2013-empathy-2467d9a5ff47486ec71427763afd4a7e1e300b20.zip
Allow to Observe a ServerAuthentication channel while handling another one
There is no reason to refuse to Observe it. (#645108)
-rw-r--r--libempathy/empathy-auth-factory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-auth-factory.c b/libempathy/empathy-auth-factory.c
index a3b01e0cd..edf3e2c91 100644
--- a/libempathy/empathy-auth-factory.c
+++ b/libempathy/empathy-auth-factory.c
@@ -215,7 +215,8 @@ common_checks (EmpathyAuthFactory *self,
if (tp_channel_get_channel_type_id (channel) ==
TP_IFACE_QUARK_CHANNEL_TYPE_SERVER_AUTHENTICATION
- && priv->sasl_handler != NULL)
+ && priv->sasl_handler != NULL &&
+ !observe)
{
g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"Can't %s more than one ServerAuthentication channel at one time",