Rearm timer for the next time
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
nemunaire 2022-12-15 16:40:49 +01:00
parent 6ae3c92cbc
commit f8be28744c

4
app.go
View File

@ -84,6 +84,10 @@ func (app *App) ResetTimer() {
app.nextAlarm = time.AfterFunc(time.Until(*na), func() {
app.nextAlarm = nil
reveil.RemoveOldAlarmsSingle(app.db)
// Rearm timer for the next time
app.ResetTimer()
err := player.WakeUp(app.cfg, routines)
if err != nil {
log.Println(err.Error())