mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Fix crash when closing room during timeline decryption
This commit is contained in:
parent
17d363cf9a
commit
a994f859e1
2 changed files with 7 additions and 2 deletions
1
changelog.d/5552.bugfix
Normal file
1
changelog.d/5552.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix crash when closing a room while decrypting timeline events
|
|
@ -100,8 +100,12 @@ internal class TimelineEventDecryptor @Inject constructor(
|
|||
}
|
||||
executor?.execute {
|
||||
Realm.getInstance(realmConfiguration).use { realm ->
|
||||
runBlocking {
|
||||
processDecryptRequest(request, realm)
|
||||
try {
|
||||
runBlocking {
|
||||
processDecryptRequest(request, realm)
|
||||
}
|
||||
} catch (e: InterruptedException) {
|
||||
Timber.i("Decryption got interrupted")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue