mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 04:50:30 +01:00
dnsconfd: set the state to idle when connection fails
If the plugin can't connect to D-Bus, it is not waiting for an update; set the state to idle.
This commit is contained in:
parent
8ff1cbf38b
commit
2bfd27f74d
1 changed files with 4 additions and 1 deletions
|
|
@ -700,7 +700,10 @@ update(NMDnsPlugin *plugin,
|
|||
|
||||
/* We need to consider only whether we are connected, because newer update call
|
||||
* overrides the old one */
|
||||
if (all_connected != CONNECTION_SUCCESS) {
|
||||
if (all_connected == CONNECTION_FAIL) {
|
||||
priv->plugin_state = DNSCONFD_PLUGIN_IDLE;
|
||||
_LOGT("failed to connect");
|
||||
} else if (all_connected == CONNECTION_WAIT) {
|
||||
priv->plugin_state = DNSCONFD_PLUGIN_WAIT_CONNECT;
|
||||
_LOGT("not connected, waiting to connect");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue