mirror of https://github.com/v2ray/v2ray-core
actually wait for done
parent
ccb874d65a
commit
ea6ccb88af
|
@ -56,7 +56,7 @@ func NewTimedUserValidator(hasher IDHash) UserValidator {
|
||||||
|
|
||||||
func (this *TimedUserValidator) Release() {
|
func (this *TimedUserValidator) Release() {
|
||||||
this.cancel.Cancel()
|
this.cancel.Cancel()
|
||||||
this.cancel.WaitForDone()
|
<-this.cancel.WaitForDone()
|
||||||
|
|
||||||
this.validUsers = nil
|
this.validUsers = nil
|
||||||
this.userHash = nil
|
this.userHash = nil
|
||||||
|
|
Loading…
Reference in New Issue