bluetooth: update device's valid flag after parsing properties
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 7 Aug 2016 15:45:51 +0000 (18:45 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 10 Aug 2016 18:37:33 +0000 (21:37 +0300)
commit570288ccc9e2ce50c270125020353c0899a29b55
tree4a8b8c87e22bd4b36633e80876e3386335642270
parenteec4d29247386a33d8c2b94a16de8f9ccf63c563
bluetooth: update device's valid flag after parsing properties

The properties_received flag affects whether the device should be
considered valid, so let's update the valid flag after setting the
properties_received flag.

There's a call to device_update_valid() anyway later when setting
the device adapters, so this change isn't strictly necessary, but
this makes it more obvious that the code is correct (and less
fragile).
src/modules/bluetooth/bluez5-util.c