mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
Merge pull request #94 from GeWuYou/refactor/pool-simplify-warning-messages
refactor(pool): 简化对象池释放警告消息
This commit is contained in:
commit
1f0eb55288
@ -73,8 +73,7 @@ public abstract class AbstractObjectPoolSystem<TKey, TObject>
|
||||
{
|
||||
// 记录警告:检测到可能的双重释放或错误释放
|
||||
Debug.WriteLine(
|
||||
$"[ObjectPool] Warning: Attempting to release object for key '{key}' " +
|
||||
$"but ActiveCount is already 0. Possible double-release or incorrect key.");
|
||||
$"[ObjectPool] Warning: Release called with key '{key}', but ActiveCount is already 0. Possible double release.");
|
||||
}
|
||||
|
||||
// 检查容量限制
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user