mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
actually wait for done
This commit is contained in:
@@ -56,7 +56,7 @@ func NewTimedUserValidator(hasher IDHash) UserValidator {
|
||||
|
||||
func (this *TimedUserValidator) Release() {
|
||||
this.cancel.Cancel()
|
||||
this.cancel.WaitForDone()
|
||||
<-this.cancel.WaitForDone()
|
||||
|
||||
this.validUsers = nil
|
||||
this.userHash = nil
|
||||
|
||||
Reference in New Issue
Block a user