summaryrefslogtreecommitdiffstats
path: root/src/bluetooth
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2017-05-12 15:54:36 +0200
committerAlex Blasche <alexander.blasche@qt.io>2017-05-15 10:45:08 +0000
commit1287cb093a89c9f21d50ffa590967700e17891e7 (patch)
treec7d51d1d2e23de45a42a698b96dc48fa5d9376cb /src/bluetooth
parentdf6b10cb829e4d992170318fa2ed02461d8392db (diff)
BlueZ: Ensure stop advertisement calls are actually sent when issued
The command queue was not flushed out to the HCI socket. Change-Id: Ic249fc6d7c93c8ca1026ec010f667b7e155d9c46 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/bluetooth')
-rw-r--r--src/bluetooth/qleadvertiser_bluez.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/qleadvertiser_bluez.cpp b/src/bluetooth/qleadvertiser_bluez.cpp
index 652d28f9..b964f620 100644
--- a/src/bluetooth/qleadvertiser_bluez.cpp
+++ b/src/bluetooth/qleadvertiser_bluez.cpp
@@ -114,6 +114,7 @@ void QLeAdvertiserBluez::doStartAdvertising()
void QLeAdvertiserBluez::doStopAdvertising()
{
toggleAdvertising(false);
+ sendNextCommand();
}
void QLeAdvertiserBluez::queueCommand(OpCodeCommandField ocf, const QByteArray &data)