summaryrefslogtreecommitdiffstats
path: root/tests/bttestui
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bttestui')
-rw-r--r--tests/bttestui/btlocaldevice.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bttestui/btlocaldevice.cpp b/tests/bttestui/btlocaldevice.cpp
index 251b6dfc..f08a175c 100644
--- a/tests/bttestui/btlocaldevice.cpp
+++ b/tests/bttestui/btlocaldevice.cpp
@@ -391,6 +391,12 @@ void BtLocalDevice::abortSocket()
qDebug() << "###### Disconnecting socket";
socket->abort();
}
+
+ if (!serverSockets.isEmpty()) {
+ qDebug() << "###### Closing server sockets";
+ foreach (QBluetoothSocket *s, serverSockets)
+ s->abort();
+ }
}
void BtLocalDevice::socketConnected()