Merge "Adhere to HIDL contract on cancel() method"

This commit is contained in:
Kevin Chyn
2019-02-25 22:52:28 +00:00
committed by Android (Google) Code Review

View File

@@ -209,11 +209,7 @@ public abstract class ClientMonitor extends LoggableMonitor implements IBinder.D
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);
}
stop(false /* initiatedByClient */);
mToken = null;
mListener = null;
}