mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-11-30 05:38:37 +00:00
WebSocket transport, XHTTP server: Reduce some goroutines by switching to task.Periodic (#7470)
https://github.com/XTLS/Xray-core/pull/7463#issuecomment-7081595080 https://github.com/XTLS/Xray-core/pull/7470#issuecomment-7131388265 https://github.com/XTLS/Xray-core/pull/7470#issuecomment-7163168321 --------- Co-authored-by: StarProxima <34741787+StarProxima@users.noreply.github.com>
This commit is contained in:
@@ -71,7 +71,6 @@ func (t *ActivityTimer) SetTimeout(timeout time.Duration) {
|
||||
}
|
||||
common.CloseIfExists(t.checkTask)
|
||||
t.checkTask = newCheckTask
|
||||
t.Update()
|
||||
common.Must(newCheckTask.Start())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user