diff options
author | Juha Vuolle <juha.vuolle@insta.fi> | 2022-09-06 13:25:47 +0300 |
---|---|---|
committer | Juha Vuolle <juha.vuolle@insta.fi> | 2022-09-23 09:19:42 +0300 |
commit | 3284614452f011b1788f7500e22c297f9c801633 (patch) | |
tree | cb40a33d1002839f73388c8e27afa08ff05fbb80 /tests/auto/CMakeLists.txt | |
parent | 674080a59307cf588126f74a65711a10762f29df (diff) | |
download | qtconnectivity-3284614452f011b1788f7500e22c297f9c801633.tar.gz |
Clear previous bluetooth device/service discovery errors on restart
An example of the problem is when discovery is first tried while
bluetooth is OFF, and one gets the corresponding error. Then the
bluetooth is switched ON, and the discovery is restarted successfully.
However in this case the error() still remains as "power OFF" error
instead of "no error", which is misleading.
With device discovery agent the clearing is done at each individual
backend, rather than at the common public class start(). This is due
to the pending cancel/start logic, which we probably shouldn't interfere
with by clearing errors amidst pending operation. The Darwin backend
already cleared the error in its start(), and with this commit the
intent is to add similar clearing to the Android/Bluez/Win.
Fixes: QTBUG-104473
Change-Id: I713590a26eb2b8d4ee7873f3fe84e63e504523df
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
(cherry picked from commit 14db1fabef1ba2eb1a889c968e3b038f7978d6bd)
Diffstat (limited to 'tests/auto/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions