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,9 +100,13 @@ internal class TimelineEventDecryptor @Inject constructor(
|
|||||||
}
|
}
|
||||||
executor?.execute {
|
executor?.execute {
|
||||||
Realm.getInstance(realmConfiguration).use { realm ->
|
Realm.getInstance(realmConfiguration).use { realm ->
|
||||||
|
try {
|
||||||
runBlocking {
|
runBlocking {
|
||||||
processDecryptRequest(request, realm)
|
processDecryptRequest(request, realm)
|
||||||
}
|
}
|
||||||
|
} catch (e: InterruptedException) {
|
||||||
|
Timber.i("Decryption got interrupted")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user