[Telepathy-commits] [telepathy-mission-control/master] Fix account-transport association

Alberto Mardegan alberto.mardegan at nokia.com
Mon Jan 26 05:02:13 PST 2009


Don't assign a transport to accounts with no conditions: they have nothing to
do with it.
---
 src/mcd-master.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mcd-master.c b/src/mcd-master.c
index 82ea7c9..e3f89d4 100644
--- a/src/mcd-master.c
+++ b/src/mcd-master.c
@@ -167,7 +167,8 @@ check_account_transport (gpointer key, gpointer value, gpointer userdata)
     {
 	g_debug ("conditions matched");
         _mcd_account_request_connection (account);
-	set_account_transport (account, td->transport);
+        if (g_hash_table_size (conditions) > 0)
+            set_account_transport (account, td->transport);
     }
     g_hash_table_unref (conditions);
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list