docs: 修复 server 在 WebSocket 模式下超时时间无效的问题
This commit is contained in:
@@ -71,7 +71,13 @@ func (slf *Pool[T]) IsClose() bool {
|
||||
}
|
||||
|
||||
func (slf *Pool[T]) Release(data T) {
|
||||
slf.mutex.Lock()
|
||||
if slf.releaser == nil {
|
||||
slf.mutex.Unlock()
|
||||
return
|
||||
}
|
||||
slf.releaser(data)
|
||||
slf.mutex.Unlock()
|
||||
slf.put(data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user