mirror of https://github.com/v2ray/v2ray-core
parent
4fad49fef8
commit
6c3ef146f1
|
@ -33,7 +33,7 @@ func (t *ActivityTimer) run(ctx context.Context, cancel context.CancelFunc) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ticker := time.NewTicker(<-t.timeout)
|
ticker := time.NewTicker(timeout)
|
||||||
defer func() {
|
defer func() {
|
||||||
ticker.Stop()
|
ticker.Stop()
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue