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

Commit 1e68bd76 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "PAN: Delete disconnected PAN device from map"

am: 092529d9

Change-Id: I0ec4f4d23a312d9d50f0624bad0fa9fe166fd050
parents 4fcd3618 092529d9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -574,9 +574,7 @@ public class PanService extends ProfileService {
                    + ", prevState = " + prevState);
            if (state == BluetoothProfile.STATE_CONNECTED) {
                mNetworkFactory.startReverseTether(iface);
            } else if (state == BluetoothProfile.STATE_DISCONNECTED && (
                    prevState == BluetoothProfile.STATE_CONNECTED
                            || prevState == BluetoothProfile.STATE_DISCONNECTING)) {
            } else if (state == BluetoothProfile.STATE_DISCONNECTED) {
                mNetworkFactory.stopReverseTether();
                mPanDevices.remove(device);
            }