Skip to content

Commit

Permalink
fix: fixed crash in RootlessSessionDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Mar 27, 2023
1 parent a31a3df commit 0cb6b87
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ class RootlessSessionDatabase(context: Context) : BaseSessionDatabase(context) {

override fun onSessionRemoved(item: IEffectSession) {
(item as MutedEffectSession).run {
audioMuteEffect?.enabled = false
audioMuteEffect?.release()
try {
audioMuteEffect?.enabled = false
audioMuteEffect?.release()
}
catch (ex: Exception) {
Timber.e("onSessionRemoved: effect already destroyed")
Timber.d(ex)
}
}
}

Expand Down

0 comments on commit 0cb6b87

Please sign in to comment.