mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Check thread is still alive before sending message in Loader.
The release callback handler in Loader might not be alive anymore. Catch this case to prevent warnings about sending messages on dead threads. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=167996538
This commit is contained in:
parent
8f43dcd424
commit
ec38d0d8ab
1 changed files with 3 additions and 1 deletions
|
|
@ -420,7 +420,9 @@ public final class Loader implements LoaderErrorThrower {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
sendEmptyMessage(0);
|
||||
if (getLooper().getThread().isAlive()) {
|
||||
sendEmptyMessage(0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue