summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2017-06-01 16:25:17 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2017-06-07 09:02:09 +0000
commitd86490915aaa42c04d4dc1ad866e5bb1836d4272 (patch)
tree82e3db8a715f4d81782cd903d7dab1c8d859c5ad /src
parentc1698e56f0f988564d6e86426a45fdcf4e653a1e (diff)
Initialize lowEnergySearchTimeout with -1
.. that allows to pass the tst_discoveryTimeout() test. Change-Id: I1af53c8186151fcb6017b07b28f4b8355d91d072 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
index d6f60ad3..4728faf7 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp
@@ -302,6 +302,7 @@ QBluetoothDeviceDiscoveryAgentPrivate::QBluetoothDeviceDiscoveryAgentPrivate(
, active(false)
, systemErrorCode(NO_ERROR)
, hSearch(0)
+ , lowEnergySearchTimeout(-1) // remains -1 -> timeout not supported
, q_ptr(parent)
{
scanWatcher = new QFutureWatcher<QBluetoothDeviceInfo>(this);