]> git.0d.be Git - empathy.git/commitdiff
Allow to Observe a ServerAuthentication channel while handling another one
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 18 Mar 2011 09:33:49 +0000 (10:33 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 18 Mar 2011 09:33:49 +0000 (10:33 +0100)
There is no reason to refuse to Observe it. (#645108)

libempathy/empathy-auth-factory.c

index b005b7a7c7667d81ed1f6935125e862becbc95e0..070bbfcff5656f19b60ee42c1f2e2e9af2dae31b 100644 (file)
@@ -213,7 +213,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",