summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothsocket_bluez.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-04-01 08:33:21 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-04-01 08:36:34 +0200
commit4ed0678f93d7fc6a9d0d43dfdfe6608e827eb176 (patch)
tree3faa743c8a7a84e9f97408acd625c4ed797e6f81 /src/bluetooth/qbluetoothsocket_bluez.cpp
parentec82c463d3f83454130dccfa71988af13768c5eb (diff)
parentb4bf23453e65995bdd8827b6e146edd5cafeddc3 (diff)
Merge branch '5.4' into 5.5
Diffstat (limited to 'src/bluetooth/qbluetoothsocket_bluez.cpp')
-rw-r--r--src/bluetooth/qbluetoothsocket_bluez.cpp14
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_,