Explicitly prevent callbacks after player is released
We currently implicitly rely on the internal playback thread to not send new updates after the player got released. This may not always be ensured since we let the release call timeout. For the timeout case, there may still be a pending operation returning much later when it unstuck itself. Fix this and potential other edge cases by explicitly removing all listeners and preventing new listeners from being added after the release. PiperOrigin-RevId: 338217220
Showing
with
57 additions
and
0 deletions
Please
register
or
sign in
to comment