summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-04-11 11:37:04 +0200
committerThomas Haller <thaller@redhat.com>2018-04-11 11:38:02 +0200
commit835a5f7248aeb618ae00dd5ae85647f34611d718 (patch)
tree4a0f21efc2c4266b511469a0180adf18636168ce
parent8c805c943cbc291da2adf49d7c517b010ab5801d (diff)
connectivity: also expose fake connectivity states to dispatcher
The fake states still encode whether the device have a default-route. So, they are not entirely useless. Also, don't add special handling of "#if !WITH_CONCHECK" where we don't need it. There is no fundamental difference between compiling without connectivity check and disabling connectivity checks.
-rw-r--r--src/nm-dispatcher.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nm-dispatcher.c b/src/nm-dispatcher.c
index 29bf5c9748..2f88d468eb 100644
--- a/src/nm-dispatcher.c
+++ b/src/nm-dispatcher.c
@@ -631,9 +631,7 @@ _dispatcher_call (NMDispatcherAction action,
if (!device_dhcp6_props)
device_dhcp6_props = g_variant_ref_sink (g_variant_new_array (G_VARIANT_TYPE ("{sv}"), NULL, 0));
-#if WITH_CONCHECK
connectivity_state_string = nm_connectivity_state_to_string (connectivity_state);
-#endif
/* Send the action to the dispatcher */
if (blocking) {