summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bluetooth/qbluetoothserver.cpp3
-rw-r--r--src/bluetooth/qbluetoothserver_bluez.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver.cpp b/src/bluetooth/qbluetoothserver.cpp
index 6cb9ba01..967d4e71 100644
--- a/src/bluetooth/qbluetoothserver.cpp
+++ b/src/bluetooth/qbluetoothserver.cpp
@@ -175,7 +175,8 @@ QBluetoothServer::~QBluetoothServer()
which is returned can not be changed any more.
Returns a registered QBluetoothServiceInfo instance if sucessful otherwise an
- invalid QBluetoothServiceInfo.
+ invalid QBluetoothServiceInfo. This function always assumes that the default Bluetooth adapter
+ should be used.
For an RFCOMM server this function is equivalent to following code snippet.
diff --git a/src/bluetooth/qbluetoothserver_bluez.cpp b/src/bluetooth/qbluetoothserver_bluez.cpp
index 83d0b073..e8457183 100644
--- a/src/bluetooth/qbluetoothserver_bluez.cpp
+++ b/src/bluetooth/qbluetoothserver_bluez.cpp
@@ -107,6 +107,7 @@ bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port)
int sock = d->socket->socketDescriptor();
if (sock < 0) {
d->m_lastError = InputOutputError;
+ emit error(d->m_lastError);
return false;
}