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

Commit e6c65c29 authored by Sanket Agarwal's avatar Sanket Agarwal Committed by android-build-merger
Browse files

Merge "Remove calls when device gets disconnected"

am: 68039610

Change-Id: I19a0dd745520700895c036aca02b747d86cff401
parents 1550d96a 68039610
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;