diff options
Diffstat (limited to 'src/bluetooth/qbluetoothserver_osx.mm')
-rw-r--r-- | src/bluetooth/qbluetoothserver_osx.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver_osx.mm b/src/bluetooth/qbluetoothserver_osx.mm index 444a8992..894209ba 100644 --- a/src/bluetooth/qbluetoothserver_osx.mm +++ b/src/bluetooth/qbluetoothserver_osx.mm @@ -429,7 +429,11 @@ QBluetoothServiceInfo QBluetoothServer::listen(const QBluetoothUuid &uuid, const bool QBluetoothServer::isListening() const { - return d_ptr->listener; + if (d_ptr->serverType == QSInfo::UnknownProtocol) + return false; + + const QMutexLocker lock(&QBluetoothServerPrivate::channelMapMutex()); + return QBluetoothServerPrivate::registeredServer(serverPort(), d_ptr->serverType); } void QBluetoothServer::setMaxPendingConnections(int numConnections) |