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

This commit is contained in:
hyb1996 committed 2019-01-26 10:08:57 +08:00
1 parent 924dfe1e21
commit c5d891e392
1 file changed
+1 -1
@@ -410,7 +410,7 @@ public class ScriptRuntime {
ignoresException(media::recycle); ignoresException(media::recycle);
ignoresException(loopers::recycle); ignoresException(loopers::recycle);
ignoresException(() -> { ignoresException(() -> {
if (mRootShell != null) mRootShell.exitAndWaitFor(); if (mRootShell != null) mRootShell.exit();
mRootShell = null; mRootShell = null;
mShellSupplier = null; mShellSupplier = null;
}); });