From 8b445c0872f3ad836d79eeedcb1f23e942fb773b Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 19 Apr 2011 00:31:53 -0500 Subject: [PATCH] policy: don't recheck auto-activation when device is UNMANAGED or UNAVAILABLE Pointless, since we're not going to activate it anyway when it's in one of those states. --- src/nm-policy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nm-policy.c b/src/nm-policy.c index b80e01e5e..0e7897cbd 100644 --- a/src/nm-policy.c +++ b/src/nm-policy.c @@ -923,7 +923,10 @@ device_state_changed (NMDevice *device, break; case NM_DEVICE_STATE_UNMANAGED: case NM_DEVICE_STATE_UNAVAILABLE: + update_routing_and_dns (policy, FALSE); + break; case NM_DEVICE_STATE_DISCONNECTED: + /* Device is now available for auto-activation */ update_routing_and_dns (policy, FALSE); schedule_activate_check (policy, device, 0); break;