diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-08-14 14:54:12 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-08-15 07:34:48 +0000 |
commit | 3eb77fc4a0a9f8403baaa2a33aad9c0ef4802cb7 (patch) | |
tree | eb0a25552a3d6d58233257c29a3fae229a2b04d1 /src | |
parent | da3a8b4527e65c85f3c723e27f4d2da12359aa1d (diff) |
Bluez: Fix missing signalling for QBluetoothSocket::abort
This is a bug introduced by 45c843ceca9fac1aa1246043730eaeeb3ed23235
where this backend was simply forgotten.
Change-Id: I11c9eb1476a3ded7d0c12aaf1d203ff61194f3c4
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/bluetooth/qbluetoothsocket_bluez.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp index 9f508d61..26ab40dd 100644 --- a/src/bluetooth/qbluetoothsocket_bluez.cpp +++ b/src/bluetooth/qbluetoothsocket_bluez.cpp @@ -411,6 +411,13 @@ void QBluetoothSocketPrivateBluez::abort() // QBluetoothSocket::close QT_CLOSE(socket); socket = -1; + + Q_Q(QBluetoothSocket); + + q->setOpenMode(QIODevice::NotOpen); + q->setSocketState(QBluetoothSocket::UnconnectedState); + emit q->readChannelFinished(); + emit q->disconnected(); } QString QBluetoothSocketPrivateBluez::localName() const |