Skip to content

Commit

Permalink
Update binderDied() error description to spell out the possibilities …
Browse files Browse the repository at this point in the history
…for those unfamiliar with Android internals. (#11628)

Callers are frequently confused by this message and waste time looking for problems in the client when the root cause is simply a server crash. See b/371447460 for more context.
  • Loading branch information
jdcormie authored Oct 24, 2024
1 parent b65cbf5 commit 46c1b38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ protected boolean setOutgoingBinder(OneWayBinderProxy binder) {

@Override
public synchronized void binderDied() {
shutdownInternal(Status.UNAVAILABLE.withDescription("binderDied"), true);
shutdownInternal(Status.UNAVAILABLE.withDescription("Peer process crashed, exited or was killed (binderDied)"), true);
}

@GuardedBy("this")
Expand Down

0 comments on commit 46c1b38

Please sign in to comment.