Fix a crash

This commit is contained in:
Mygod
2020-07-18 02:26:49 +08:00
parent a23b519a53
commit c344dbfa4a
3 changed files with 3 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ class RootSession : AutoCloseable {
RootSession()
}
revertCommands.forEach { shell.submit(it) }
} catch (e: RuntimeException) { // if revert fails, it should fail silently
} catch (e: Exception) { // if revert fails, it should fail silently
Timber.d(e)
} finally {
revertCommands.clear()