Update timer.go

This commit is contained in:
patterniha
2026-11-29 16:11:23 +09:00
parent ded8443fee
commit 1e6feeb12f
+4
View File
@@ -70,6 +70,10 @@ func (t *ActivityTimer) SetTimeout(timeout time.Duration) {
Execute: t.check,
}
common.CloseIfExists(t.checkTask)
select {
case <-t.updated:
default:
}
t.checkTask = newCheckTask
common.Must(newCheckTask.Start())
}