fix bug with entityListeners using .Duration

This commit is contained in:
Sam Lewis
2022-12-09 19:40:51 -05:00
parent ffb9c9f08b
commit 40c5fe76ba

View File

@@ -206,6 +206,7 @@ func callEntityListeners(app *App, msgBytes []byte) {
}
if l.delay != 0 {
l := l
l.delayTimer = time.AfterFunc(l.delay, func() {
go l.callback(app.service, app.state, entityData)
l.lastRan = carbon.Now()