diff options
-rw-r--r-- | src/bluetooth/qbluetoothserver_qnx.cpp | 3 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothsocket_p.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver_qnx.cpp b/src/bluetooth/qbluetoothserver_qnx.cpp index 9c6f9256..3f67d59d 100644 --- a/src/bluetooth/qbluetoothserver_qnx.cpp +++ b/src/bluetooth/qbluetoothserver_qnx.cpp @@ -95,7 +95,8 @@ void QBluetoothServerPrivate::controlReply(ppsResult result) socket->setSocketDescriptor(socketFD, QBluetoothServiceInfo::RfcommProtocol, QBluetoothSocket::ConnectedState); - socket->connectToService(QBluetoothAddress(nextClientAddress), m_uuid); + socket->d_ptr->m_peerAddress = QBluetoothAddress(nextClientAddress); + socket->d_ptr->m_uuid = m_uuid; activeSockets.append(socket); socket = new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol, this); socket->setSocketState(QBluetoothSocket::ListeningState); diff --git a/src/bluetooth/qbluetoothsocket_p.h b/src/bluetooth/qbluetoothsocket_p.h index 95e67e51..bafbf033 100644 --- a/src/bluetooth/qbluetoothsocket_p.h +++ b/src/bluetooth/qbluetoothsocket_p.h @@ -87,6 +87,8 @@ class QBluetoothSocketPrivate { #endif Q_DECLARE_PUBLIC(QBluetoothSocket) + friend class QBluetoothServerPrivate; + public: QBluetoothSocketPrivate(); |