mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-11-30 13:48:36 +00:00
Update timer.go
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user