Timeline : avoid crash when destroying
This commit is contained in:
parent
ba13164b41
commit
960945de34
1 changed files with 5 additions and 1 deletions
|
|
@ -126,7 +126,11 @@ class RustMatrixTimeline(
|
||||||
|
|
||||||
private suspend fun fetchMembers() = withContext(dispatcher) {
|
private suspend fun fetchMembers() = withContext(dispatcher) {
|
||||||
initLatch.await()
|
initLatch.await()
|
||||||
innerTimeline.fetchMembers()
|
try {
|
||||||
|
innerTimeline.fetchMembers()
|
||||||
|
} catch (exception: Exception) {
|
||||||
|
Timber.e(exception, "Error fetching members for room ${matrixRoom.roomId}")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
@OptIn(ExperimentalCoroutinesApi::class)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue