diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2017-05-12 15:42:01 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2017-05-15 10:45:05 +0000 |
commit | df6b10cb829e4d992170318fa2ed02461d8392db (patch) | |
tree | 7d4b74fe740ed42df1b3848be39c0b5c6337cf45 /src/bluetooth/qleadvertiser_p.h | |
parent | 6b3640d28f2ef47c47ada0f8d44117a1b7a28098 (diff) |
Fix readvertisement failure on peripheral restart on BlueZ
When the QLowEnergyController disconnects and immediately restarts
the re-advertisement, it fails when sending the OcfLeSetAdvEnable ocf
command. Subsequenly an advertisement error is thrown which stops
the QLowEnergyCOntroller instance itself.
Starting with this patch we choose to ignore failures when trying
to disable advertisement. The API cannot report the error back anyway.
Task-number: QTBUG-58941
Change-Id: Ifd6b43193c41e6cdc22d4876441bcdcbcc2ca7b6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/bluetooth/qleadvertiser_p.h')
-rw-r--r-- | src/bluetooth/qleadvertiser_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bluetooth/qleadvertiser_p.h b/src/bluetooth/qleadvertiser_p.h index 922fdf64..e8f55bda 100644 --- a/src/bluetooth/qleadvertiser_p.h +++ b/src/bluetooth/qleadvertiser_p.h @@ -145,7 +145,6 @@ private: quint8 m_powerLevel; bool m_sendPowerLevel; - bool m_disableCommandFinished; }; #endif // QT_CONFIG(bluez) |