mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-23 06:10:31 +01:00
core: fix dbus reconnection by not mixing up GSourceFunc return values
TRUE means continue the timeout, FALSE means remove. Yay for me.
This commit is contained in:
parent
f8026260c6
commit
f194ca6cff
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue