diff options
Diffstat (limited to 'src/nm-activation-request.c')
-rw-r--r-- | src/nm-activation-request.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-activation-request.c b/src/nm-activation-request.c index 7ffa3dc6f5..6a1d5c9dbf 100644 --- a/src/nm-activation-request.c +++ b/src/nm-activation-request.c @@ -306,9 +306,10 @@ device_state_changed (NMActiveConnection *active, NMDeviceState old_state) { NMActiveConnectionState ac_state = NM_ACTIVE_CONNECTION_STATE_UNKNOWN; + NMActiveConnection *act_req_ac = NM_ACTIVE_CONNECTION (nm_device_get_act_request (device)); /* Ignore state changes when this activation request is not yet active */ - if (NM_ACTIVE_CONNECTION (nm_device_get_act_request (device)) != active) + if (act_req_ac != NULL && act_req_ac != active) return; /* Set NMActiveConnection state based on the device's state */ |