Fix potential ConcurrentModificationException
give a copy to avoid issues
This commit is contained in:
parent
9ec68fa5be
commit
479f10a28e
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue