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

This commit is contained in:
hyb1996
2019-01-26 10:06:21 +08:00
parent 9fb84e7ea2
commit 924dfe1e21
2 changed files with 10 additions and 9 deletions

View File

@@ -137,8 +137,8 @@ object Scripts {
}
@Nullable
fun getRhinoException(e: Throwable?): RhinoException? {
var e = e
fun getRhinoException(throwable: Throwable?): RhinoException? {
var e = throwable
while (e != null) {
if (e is RhinoException) {
return e