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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user