mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-12-04 07:38:42 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e6feeb12f |
@@ -70,6 +70,10 @@ func (t *ActivityTimer) SetTimeout(timeout time.Duration) {
|
|||||||
Execute: t.check,
|
Execute: t.check,
|
||||||
}
|
}
|
||||||
common.CloseIfExists(t.checkTask)
|
common.CloseIfExists(t.checkTask)
|
||||||
|
select {
|
||||||
|
case <-t.updated:
|
||||||
|
default:
|
||||||
|
}
|
||||||
t.checkTask = newCheckTask
|
t.checkTask = newCheckTask
|
||||||
common.Must(newCheckTask.Start())
|
common.Must(newCheckTask.Start())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user