Fix potential ConcurrentModificationException

give a copy to avoid issues
This commit is contained in:
Valere 2020-10-29 14:36:40 +01:00
parent 9ec68fa5be
commit 479f10a28e
1 changed files with 1 additions and 1 deletions

View File

@ -819,7 +819,7 @@ internal class DefaultTimeline(
private val inMemorySendingEvents = Collections.synchronizedList<TimelineEvent>(ArrayList()) private val inMemorySendingEvents = Collections.synchronizedList<TimelineEvent>(ArrayList())
fun getInMemorySendingEvents(): List<TimelineEvent> { fun getInMemorySendingEvents(): List<TimelineEvent> {
return inMemorySendingEvents return inMemorySendingEvents.toList()
} }
/** /**