Don't stop Bt discoveries while we have InvalidBluetoothAdapterError
authorAlex Blasche <alexander.blasche@digia.com>
Mon, 20 Jan 2014 09:48:30 +0000 (10:48 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 20 Jan 2014 11:19:36 +0000 (12:19 +0100)
commit90e2f8bc28f103080f25612fbc07a0652705a171
tree6ef8681ff548bcc93e5234c417c9146a597dc470
parentb4a5e7d3c3efddff23022acdb42485ad534553eb
Don't stop Bt discoveries while we have InvalidBluetoothAdapterError

This change complements 23a3863de809a4051ae6db4942145cb0cb624d6c.

The discovery process should not stop when the passed local adapter
address is invalid. While the first change ensures that start() cannot
be called stop() was still callable. The platform specific implementations
potentially set lastError to something else und thus would permit
a call to start() later on. This may lead to invalid internal states.

Change-Id: Ibfd87374bf712614fad90172894ea2e009ba198a
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
src/bluetooth/qbluetoothdevicediscoveryagent.cpp
src/bluetooth/qbluetoothservicediscoveryagent.cpp