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

Commit bd0ccad3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cancel current operation when binder dies"

parents 893f55cb 9e7b89a3
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -197,10 +197,15 @@ public abstract class ClientMonitor implements IBinder.DeathRecipient {


    @Override
    @Override
    public void binderDied() {
    public void binderDied() {
        // If the current client dies we should cancel the current operation.
        Slog.e(getLogTag(), "Binder died, cancelling client");
        try {
            getDaemonWrapper().cancel();
        } catch (RemoteException e) {
            Slog.e(getLogTag(), "Remote exception", e);
        }
        mToken = null;
        mToken = null;
        mListener = null;
        mListener = null;
        onError(getHalDeviceId(), BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE,
                0 /* vendorCode */);
    }
    }


    @Override
    @Override