From f194ca6cff77ef4fe514d6427904417c123410dc Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 5 Jun 2009 11:49:54 -0400 Subject: [PATCH] core: fix dbus reconnection by not mixing up GSourceFunc return values TRUE means continue the timeout, FALSE means remove. Yay for me. --- src/nm-dbus-manager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nm-dbus-manager.c b/src/nm-dbus-manager.c index b05c4421ae..bb52457a75 100644 --- a/src/nm-dbus-manager.c +++ b/src/nm-dbus-manager.c @@ -161,12 +161,14 @@ nm_dbus_manager_reconnect (gpointer user_data) nm_info ("reconnected to the system bus."); g_signal_emit (self, signals[DBUS_CONNECTION_CHANGED], 0, priv->connection); - return TRUE; + priv->reconnect_id = 0; + return FALSE; } } + /* Try again */ nm_dbus_manager_cleanup (self, FALSE); - return FALSE; + return TRUE; } static void