diff --git a/common/signal/timer.go b/common/signal/timer.go index 0fd202f21..ffc26fcfb 100644 --- a/common/signal/timer.go +++ b/common/signal/timer.go @@ -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()) }