Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c8cd344 authored by William Escande's avatar William Escande
Browse files

AdapterService: Delete one time variable

Executor let think the user there is a real executor while instead this
is creating a raw thread in the code

Bug: 311772251
Test: m Bluetooth | no-op clean up
Flag: Exempt, basic cleanup
Change-Id: Ib783386e27dbbb2b5a2d013589b1dceaeaff8955
parent 5940db71
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -353,7 +353,6 @@ public class AdapterService extends Service {
    private HashMap<String, CallerInfo> mBondAttemptCallerInfo = new HashMap<>();

    private final Map<UUID, RfcommListenerData> mBluetoothServerSockets = new ConcurrentHashMap<>();
    private final Executor mSocketServersExecutor = r -> new Thread(r).start();

    private BatteryStatsManager mBatteryStatsManager;
    private PowerManager mPowerManager;
@@ -2087,7 +2086,7 @@ public class AdapterService extends Service {

        mBluetoothServerSockets.put(uuid, listenerData);

        mSocketServersExecutor.execute(() -> handleIncomingRfcommConnections(uuid));
        new Thread(() -> handleIncomingRfcommConnections(uuid)).start();
    }

    private void stopRfcommServerSockets() {