Commit d67ca376 authored by Alex Blasche's avatar Alex Blasche
Browse files

BlueZ: Fix leaking client socket when running QLEController Peripheral mode


In fact there are two socket leaks. The first is the socket for the incoming
l2cp connection from the central device and the second one is allocated in the
ctor of QBluetoothSocket. When QBluetoothSocket::setSocketDescriptor is called
the previously ctor allocated socket was simply ignorred. This patch closes
both socket.

Fixes: QTBUG-75278
Change-Id: Ia483e3c2a04bec3a53ddf744c22b794941edf848
Reviewed-by: default avatarTimur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: default avatarOliver Wolff <oliver.wolff@qt.io>
 
parent 14b0efe1
Branches
Tags
No related merge requests found
Showing with 11 additions and 0 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment