mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-23 16:21:26 +01:00
Fix crash when closing room during timeline decryption
This commit is contained in:
parent
17d363cf9a
commit
a994f859e1
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 New Issue
Block a user