mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 21:50:11 +01:00
connectivity: don't do periodic checks on interval=0
https://bugzilla.redhat.com/show_bug.cgi?id=1449296
Fixes: 7307dea9c4
This commit is contained in:
parent
bd9988f984
commit
a95563996f
1 changed files with 2 additions and 1 deletions
|
|
@ -465,7 +465,8 @@ update_config (NMConnectivity *self, NMConfigData *config_data)
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
nm_clear_g_source (&priv->periodic_check_id);
|
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