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

Commit cbaeac78 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 8b2711a9)
parent 86c9340c
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;