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

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

Merge "ignore exception calling unlinkToDeath" into oc-dev

parents a58589bd 34f5b421
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -43,6 +43,7 @@ import java.io.IOException;
import java.io.PrintWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.List;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.TimeoutException;


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


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