[Pkg-telepathy-commits] [telepathy-glib] 03/12: TpBaseConnectionManager: Fix critical printed each time a new connection is made

Simon McVittie smcv at debian.org
Wed Jan 29 12:55:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-glib.

commit 3c1c43cc2a13df3d5f56e20d49c7bd136486b372
Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Mon Nov 25 14:56:01 2013 -0500

    TpBaseConnectionManager: Fix critical printed each time a new connection is made
    
    glib 2.39.0 started to print a g_critical() message when calling
    g_source_remove() on a source that does not exist anymore.
---
 telepathy-glib/run.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/telepathy-glib/run.c b/telepathy-glib/run.c
index 7ae6e82..c3df190 100644
--- a/telepathy-glib/run.c
+++ b/telepathy-glib/run.c
@@ -84,7 +84,7 @@ kill_connection_manager (gpointer data)
     }
 
   timeout_id = 0;
-  return FALSE;
+  return G_SOURCE_REMOVE;
 }
 
 static void
@@ -98,6 +98,7 @@ new_connection (TpBaseConnectionManager *conn,
   if (0 != timeout_id)
     {
       g_source_remove (timeout_id);
+      timeout_id = 0;
     }
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-glib.git



More information about the Pkg-telepathy-commits mailing list