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

Commit 34f5b421 authored by Todd Kennedy's avatar Todd Kennedy
Browse files

ignore exception calling unlinkToDeath

Change-Id: If3fdb2ca46f8118d9d2859fc932b4614bb62220e
Fixes: 37893511
Test: Manual
parent d05dda1d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeoutException;

/**
@@ -206,7 +207,9 @@ final class EphemeralResolverConnection implements DeathRecipient {

    private void handleBinderDiedLocked() {
        if (mRemoteInstance != null) {
            try {
                mRemoteInstance.asBinder().unlinkToDeath(this, 0 /*flags*/);
            } catch (NoSuchElementException ignore) { }
        }
        mRemoteInstance = null;
    }