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:
Thomas Haller 2020-01-03 13:49:31 +01:00
parent 2c4f57be19
commit 8db5563722

View file

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