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

Commit 8b2711a9 authored by Sanket Agarwal's avatar Sanket Agarwal
Browse files

Remove calls when device gets disconnected

Bug: b/29170324
Change-Id: I4e9ae948801f80d8f22fb737812e1ed403077bff
(cherry picked from commit ee3ef8f68c0c757d7ce3c40c9ecb2fe4671a4b9b)
parent 7ec95a31
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -430,10 +430,11 @@ public class HfpClientConnectionService extends ConnectionService {
        }
    }

    private void disconnectAll() {
    private synchronized void disconnectAll() {
        for (HfpClientConnection connection : mConnections.values()) {
            connection.onHfpDisconnected();
        }
        mConnections.clear();
        if (mConference != null) {
            mConference.destroy();
            mConference = null;