diff options
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp index ec8de3e8..ab2524a2 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp @@ -368,10 +368,6 @@ void QBluetoothDeviceDiscoveryAgentPrivate::start(QBluetoothDeviceDiscoveryAgent if (worker) return; - // The worker handles its lifetime on its own (basically deletes itself as soon - // as it's done with its work) to prevent windows callbacks that access objects - // that have already been destroyed. Thus we create a new worker for every start - // and just forget about it as soon as the operation is canceled or finished. worker = new QWinRTBluetoothDeviceDiscoveryWorker(); worker->requestedModes = methods; discoveredDevices.clear(); |