From 3c1c43cc2a13df3d5f56e20d49c7bd136486b372 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 25 Nov 2013 14:56:01 -0500 Subject: 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 7ae6e8236..c3df19037 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; } } -- cgit v1.2.1