diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2017-10-13 09:59:38 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2017-10-17 05:55:43 +0000 |
commit | 7a4cae77ccfca1ade80a76be7585b42b3d31c2d1 (patch) | |
tree | d020acd77abae38863003674befc97d7f7b53cc6 /examples/bluetooth/btfiletransfer/pindisplay.cpp | |
parent | 80d85141aa496583c5cfa6dd0f62d5eb4a8ba660 (diff) |
Fix crash due to inconsistent state in QLEController during JobDisconnectDevice
This bug was caused by a problem in the patch for QTBUG-55150.
While the termination of an ongoing BTLE connection is being
processed, the QLEController instance is in Connecting state and
the internal socket is still null. If the user triggers a call
to QLEController::disconnectDevice() while the above state is
pending, it crashes due to a call to the socket's close()
function. The time window for this to happen is very small.
It takes the duration of the bluez dbus call to disconnect
a device.
This patch addresses the above crash bug and adds a
bit more debug output to catch similar cases later on.
Task-number: QTBUG-63619
Change-Id: I893990a9ce8ccf55ddbf619fe177379f79dc9ee3
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/bluetooth/btfiletransfer/pindisplay.cpp')
0 files changed, 0 insertions, 0 deletions