summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qbluetoothsocket.cpp')
-rw-r--r--src/bluetooth/qbluetoothsocket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket.cpp b/src/bluetooth/qbluetoothsocket.cpp
index 38697756..96ed9dae 100644
--- a/src/bluetooth/qbluetoothsocket.cpp
+++ b/src/bluetooth/qbluetoothsocket.cpp
@@ -481,6 +481,7 @@ void QBluetoothSocket::doDeviceDiscovery(const QBluetoothServiceInfo &service, O
{
Q_D(QBluetoothSocket);
+ setSocketState(QBluetoothSocket::ServiceLookupState);
//qDebug() << "Starting discovery";
if(d->discoveryAgent) {
@@ -675,6 +676,9 @@ QDebug operator<<(QDebug debug, QBluetoothSocket::SocketState state)
case QBluetoothSocket::ListeningState:
debug << "QBluetoothSocket::ListeningState";
break;
+ case QBluetoothSocket::ServiceLookupState:
+ debug << "QBluetoothSocket::ServiceLookupState";
+ break;
default:
debug << "QBluetoothSocket::SocketState(" << (int)state << ")";
}