mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-23 21:20:08 +01:00
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:
parent
1eae713a63
commit
8b445c0872
1 changed files with 3 additions and 0 deletions
|
|
@ -923,7 +923,10 @@ device_state_changed (NMDevice *device,
|
||||||
break;
|
break;
|
||||||
case NM_DEVICE_STATE_UNMANAGED:
|
case NM_DEVICE_STATE_UNMANAGED:
|
||||||
case NM_DEVICE_STATE_UNAVAILABLE:
|
case NM_DEVICE_STATE_UNAVAILABLE:
|
||||||
|
update_routing_and_dns (policy, FALSE);
|
||||||
|
break;
|
||||||
case NM_DEVICE_STATE_DISCONNECTED:
|
case NM_DEVICE_STATE_DISCONNECTED:
|
||||||
|
/* Device is now available for auto-activation */
|
||||||
update_routing_and_dns (policy, FALSE);
|
update_routing_and_dns (policy, FALSE);
|
||||||
schedule_activate_check (policy, device, 0);
|
schedule_activate_check (policy, device, 0);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue