风扇滑翔翼
2026-11-25 14:37:40 +00:00
committed by GitHub
co-authored by StarProxima
parent 862e59a2f2
commit b56ffef338
5 changed files with 37 additions and 37 deletions
+3 -7
View File
@@ -58,15 +58,11 @@ func (t *Periodic) Start() error {
return nil
}
t.running = true
t.timer = time.AfterFunc(t.Interval, func() {
t.checkedExecute()
})
t.access.Unlock()
if err := t.checkedExecute(); err != nil {
t.access.Lock()
t.running = false
t.access.Unlock()
return err
}
return nil
}