actually wait for done

pull/131/head
v2ray 2016-04-28 21:13:51 +02:00
parent ccb874d65a
commit ea6ccb88af
1 changed files with 1 additions and 1 deletions

View File

@ -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