mirror of
https://github.com/samsonjs/media.git
synced 2026-04-18 13:25:47 +00:00
Do not interrupt controller thread without a good reason
Interrupting the main thread in particular may be dangerous as the flag is not cleared after handling the current message. #minor-release PiperOrigin-RevId: 572259422
This commit is contained in:
parent
7009c53c79
commit
846117399f
1 changed files with 1 additions and 1 deletions
|
|
@ -538,7 +538,7 @@ public class MediaController implements Player {
|
|||
* controller.
|
||||
*/
|
||||
public static void releaseFuture(Future<? extends MediaController> controllerFuture) {
|
||||
if (controllerFuture.cancel(/* mayInterruptIfRunning= */ true)) {
|
||||
if (controllerFuture.cancel(/* mayInterruptIfRunning= */ false)) {
|
||||
// Successfully canceled the Future. The controller will be released by MediaControllerHolder.
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue