This commit is contained in:
李超 2026-04-01 20:18:58 +08:00
parent 2c48a26e0b
commit 0091a9439c
1 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,9 @@ namespace BLL
{
if (BLL.Funs.DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId))
{
BLL.Funs.DBList.Remove(System.Threading.Thread.CurrentThread.ManagedThreadId);
Model.SGGLDB db;
BLL.Funs.DBList.TryRemove(System.Threading.Thread.CurrentThread.ManagedThreadId,out db);
db.Dispose();
}
}
}