修复 停止脚本时导致ANR的问题

This commit is contained in:
hyb1996
2019-01-26 10:08:57 +08:00
parent 924dfe1e21
commit c5d891e392

View File

@@ -410,7 +410,7 @@ public class ScriptRuntime {
ignoresException(media::recycle);
ignoresException(loopers::recycle);
ignoresException(() -> {
if (mRootShell != null) mRootShell.exitAndWaitFor();
if (mRootShell != null) mRootShell.exit();
mRootShell = null;
mShellSupplier = null;
});