device: don't remove a devices on connection availability checks
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 18 Jan 2016 19:52:55 +0000 (20:52 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Mon, 18 Jan 2016 20:09:28 +0000 (21:09 +0100)
commitf7c76b372c6eeaec7989fb143b3a4f7e9caf97a4
tree658e5076ebbc5b7c9fe79714424a3e7e911f9615
parentac6522bbf109ac0af8845cc81903155bab914760
device: don't remove a devices on connection availability checks

The availability checks are called from places that don't assume the device
will be removed mid-air. Call the removal routine only when we're the very
last thing that's being done.
src/devices/nm-device.c