continue instead of return

This commit is contained in:
Sam Lewis
2022-11-27 23:46:02 -05:00
parent 60349852e6
commit ffb9c9f08b
2 changed files with 4 additions and 4 deletions

View File

@@ -146,9 +146,9 @@ Event listeners have other functions to change the behavior.
| Function | Info |
| --------------------------------------- | ----------------------------------------------------------------------------------- |
| Throttle("30s") | Minimum time between function calls. |
| OnlyAfter("03:00") | Only run your function after a specified time of day. |
| OnlyBefore("03:00") | Only run your function before a specified time of day. |
| OnlyBetween("03:00", "14:00") | Only run your function between two specified times of day. |
| OnlyAfter("03:00") | Only run after a specified time of day. |
| OnlyBefore("03:00") | Only run before a specified time of day. |
| OnlyBetween("03:00", "14:00") | Only run between two specified times of day. |
| ExceptionDates(time.Time, ...time.Time) | A one time exception on the given date. Time is ignored, applies to whole day. |
| ExceptionRange(time.Time, time.Time) | A one time exception between the two date/times. Both date and time are considered. |

View File

@@ -210,7 +210,7 @@ func callEntityListeners(app *App, msgBytes []byte) {
go l.callback(app.service, app.state, entityData)
l.lastRan = carbon.Now()
})
return
continue
}
// run now if no delay set