1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

fix test break

This commit is contained in:
Darien Raymond 2017-12-14 23:57:04 +01:00
parent 4fad49fef8
commit 6c3ef146f1
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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()
}() }()