mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 12:28:03 +02:00
device: fix delay startup complete for unrealized devices
Since commit6845b9b80a("device: delay startup complete until device is initialized in platform", we also wait for devices that are still initializing platform/UDEV. Obviously, that only applies to realized devices. Otherwise, an unrealized device is going to block startup complete. Fixes:6845b9b80a
This commit is contained in:
parent
ba8f81581e
commit
9ad8010fe0
1 changed files with 2 additions and 1 deletions
|
|
@ -12213,7 +12213,8 @@ nm_device_has_pending_action (NMDevice *self)
|
|||
if (priv->pending_actions)
|
||||
return TRUE;
|
||||
|
||||
if (nm_device_get_unmanaged_flags (self, NM_UNMANAGED_PLATFORM_INIT)) {
|
||||
if ( nm_device_is_real (self)
|
||||
&& nm_device_get_unmanaged_flags (self, NM_UNMANAGED_PLATFORM_INIT)) {
|
||||
/* as long as the platform link is not yet initialized, we have a pending
|
||||
* action. */
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue