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.
This commit is contained in:
Dan Williams
2011-04-19 00:31:53 -05:00
parent 1eae713a63
commit 8b445c0872

View File

@@ -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;