mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-20 21:03:46 +00:00
Merge pull request #367 from rappleg/AddEventBufferBackToAtomicState
Make sure we persist the updated eventBuffer with the new event added back to atomicState
This commit is contained in:
@@ -349,6 +349,9 @@ def eventHandler(name, value) {
|
|||||||
// from growing unbounded.
|
// from growing unbounded.
|
||||||
atomicState.eventBuffer = []
|
atomicState.eventBuffer = []
|
||||||
tryShipEvents(eventBuffer)
|
tryShipEvents(eventBuffer)
|
||||||
|
} else {
|
||||||
|
// Make sure we persist the updated eventBuffer with the new event added back to atomicState
|
||||||
|
atomicState.eventBuffer = eventBuffer
|
||||||
}
|
}
|
||||||
log.debug "Event added to buffer: " + eventBuffer
|
log.debug "Event added to buffer: " + eventBuffer
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user