mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
libnm: fix logging message about device's state change signal
The device instance might already be removed from the cache. At that point, _nm_object_get_client(self) returns %NULL. Use the correct NMClient instance.
This commit is contained in:
parent
2c4f57be19
commit
8db5563722
|
@ -158,7 +158,7 @@ _notify_event_state_changed (NMClient *client,
|
|||
gs_unref_object NMDevice *self = notify_event->user_data;
|
||||
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
|
||||
|
||||
NML_NMCLIENT_LOG_T (_nm_object_get_client (self),
|
||||
NML_NMCLIENT_LOG_T (client,
|
||||
"[%s] emit Device's StateChanged signal %u -> %u, reason: %u",
|
||||
_nm_object_get_path (self),
|
||||
(guint) priv->old_state,
|
||||
|
|
Loading…
Reference in a new issue