ソースを参照

actually wait for done

v2ray 9 年 前
コミット
ea6ccb88af
1 ファイル変更1 行追加1 行削除
  1. 1 1
      common/protocol/user_validator.go

+ 1 - 1
common/protocol/user_validator.go

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