Ensure transition to UNAVAILABLE when supplicant goes away

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3787 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-06-30 20:19:42 +00:00
parent 65758f7ffb
commit 217c697dc1

View file

@ -2240,10 +2240,10 @@ supplicant_mgr_state_cb_handler (gpointer user_data)
if (priv->supplicant.iface) {
cleanup_association_attempt (self, FALSE);
supplicant_interface_release (self);
if (nm_device_is_activating (dev))
nm_device_state_changed (dev, NM_DEVICE_STATE_UNAVAILABLE);
}
if (nm_device_get_state (dev) > NM_DEVICE_STATE_UNAVAILABLE)
nm_device_state_changed (dev, NM_DEVICE_STATE_UNAVAILABLE);
} else if (new_state == NM_SUPPLICANT_MANAGER_STATE_IDLE) {
dev_state = nm_device_get_state (dev);
if ( priv->enabled