浏览代码

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() {
 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