Commit ec38d0d8 by tonihei Committed by Oliver Woodman

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
parent 8f43dcd4
......@@ -420,7 +420,9 @@ public final class Loader implements LoaderErrorThrower {
@Override
public void run() {
sendEmptyMessage(0);
if (getLooper().getThread().isAlive()) {
sendEmptyMessage(0);
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment