Browse Source

actually wait for done

v2ray 9 năm trước cách đây
mục cha
commit
ea6ccb88af
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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