Merge pull request #5552 from SpiritCroc/timeline-decryptor-crash
Fix crash when closing room during timeline decryption
This commit is contained in:
commit
189683a8a1
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