diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-04-01 08:33:21 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-04-01 08:36:34 +0200 |
commit | 4ed0678f93d7fc6a9d0d43dfdfe6608e827eb176 (patch) | |
tree | 3faa743c8a7a84e9f97408acd625c4ed797e6f81 /src/bluetooth/qbluetoothsocket_bluez.cpp | |
parent | ec82c463d3f83454130dccfa71988af13768c5eb (diff) | |
parent | b4bf23453e65995bdd8827b6e146edd5cafeddc3 (diff) |
Merge branch '5.4' into 5.5
Change-Id: I177affc6c60fd3cc55e914a7ea2a9aeba260906f
Diffstat (limited to 'src/bluetooth/qbluetoothsocket_bluez.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothsocket_bluez.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp index 47f5629e..c18ce279 100644 --- a/src/bluetooth/qbluetoothsocket_bluez.cpp +++ b/src/bluetooth/qbluetoothsocket_bluez.cpp @@ -511,20 +511,10 @@ qint64 QBluetoothSocketPrivate::readData(char *data, qint64 maxSize) void QBluetoothSocketPrivate::close() { - Q_Q(QBluetoothSocket); - - // Only go through closing if the socket was fully opened - if(state == QBluetoothSocket::ConnectedState) - q->setSocketState(QBluetoothSocket::ClosingState); - - if(txBuffer.size() > 0 && - state == QBluetoothSocket::ClosingState){ + if (txBuffer.size() > 0) connectWriteNotifier->setEnabled(true); - } - else { + else abort(); - } - } bool QBluetoothSocketPrivate::setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType_, |