[Telepathy-commits] [telepathy-mission-control/master] Check if a connection process is already ongoing

Alberto Mardegan alberto.mardegan at nokia.com
Thu Jan 15 06:06:48 PST 2009


---
 src/mcd-account-connection.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mcd-account-connection.c b/src/mcd-account-connection.c
index 833ba7e..1989c81 100644
--- a/src/mcd-account-connection.c
+++ b/src/mcd-account-connection.c
@@ -55,6 +55,11 @@ mcd_account_connection_begin (McdAccount *account)
 {
     McdAccountConnectionContext *ctx;
 
+    /* check whether a connection process is already ongoing */
+    if (g_object_get_qdata (G_OBJECT (account),
+                            account_connection_context_quark))
+        return;
+
     /* get account params */
     /* create dynamic params HT */
     /* run the handlers */
-- 
1.5.6.5




More information about the Telepathy-commits mailing list