mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 19:00:31 +01:00
connectivity: don't do periodic checks on interval=0
https://bugzilla.redhat.com/show_bug.cgi?id=1449296 Fixes:7307dea9c4(cherry picked from commita95563996f)
This commit is contained in:
parent
c271d78d6b
commit
5d9ff0fd3f
1 changed files with 2 additions and 1 deletions
|
|
@ -465,7 +465,8 @@ update_config (NMConnectivity *self, NMConfigData *config_data)
|
|||
|
||||
if (changed) {
|
||||
nm_clear_g_source (&priv->periodic_check_id);
|
||||
priv->periodic_check_id = g_timeout_add_seconds (priv->interval, periodic_check, self);
|
||||
if (nm_connectivity_check_enabled (self))
|
||||
priv->periodic_check_id = g_timeout_add_seconds (priv->interval, periodic_check, self);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue