Automation: prevent ConcurrentModificationException
This commit is contained in:
parent
77151766cd
commit
a60c72ee17
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class AutomationPlugin @Inject constructor(
|
|||
|
||||
private fun storeToSP() {
|
||||
val array = JSONArray()
|
||||
val iterator = automationEvents.iterator()
|
||||
val iterator = ArrayList<AutomationEvent>(automationEvents).iterator()
|
||||
try {
|
||||
while (iterator.hasNext()) {
|
||||
val event = iterator.next()
|
||||
|
|
Loading…
Reference in a new issue