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

Commit 033aac30 authored by Yorke Lee's avatar Yorke Lee Committed by Natiq Ahmed
Browse files

Cleanup and remove call if ConnectionService crashes

Make sure that call is removed from CallsManager if its
ConnectionService crashes.

Verified fix with TestConnectionManager.

Bug: 18262469
Change-Id: Idae71186b6547cb5a4c89e273c779eef030a2952
parent 4bbd3bd8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1059,8 +1059,11 @@ public final class CallsManager extends Call.ListenerBase {
        if (service != null) {
            for (Call call : mCalls) {
                if (call.getConnectionService() == service) {
                    if (call.getState() != CallState.DISCONNECTED) {
                        markCallAsDisconnected(call, new DisconnectCause(DisconnectCause.ERROR));
                    }
                    markCallAsRemoved(call);
                }
            }
        }
    }