mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-11-12 19:53:02 -08:00
actually wait for done
This commit is contained in:
1 parent
ccb874d65a
commit
ea6ccb88af
1 file changed
+1
-1
@@ -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