Skip to content

Commit

Permalink
[fix]: shizuku crash
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Jul 5, 2024
1 parent b590c60 commit f4b2905
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,13 @@ class ShizukuTerminal @Inject constructor(
}

override suspend fun exit() {
// With true flag it does not remove connection from cache
Shizuku.unbindUserService(userServiceArgs, null, false)
Shizuku.unbindUserService(userServiceArgs, null, true)
// Catching as binder might not even was received
runCatching {
// With true flag it does not remove connection from cache
Shizuku.unbindUserService(userServiceArgs, null, false)
Shizuku.unbindUserService(userServiceArgs, null, true)

userService = null
userService = null
}
}
}

0 comments on commit f4b2905

Please sign in to comment.