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

View file

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