mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Fix a crash in transaction commands.
Fixes issue #3495 --HG-- branch : trunk
This commit is contained in:
@@ -205,6 +205,7 @@ void DatabaseWorkerPool::RollbackTransaction()
|
||||
{
|
||||
itr->second->ForcefulDelete();
|
||||
delete itr->second;
|
||||
itr->second = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,7 +217,7 @@ void DatabaseWorkerPool::CommitTransaction()
|
||||
if (itr != m_tranQueues.end() && itr->second != NULL)
|
||||
{
|
||||
Enqueue(itr->second);
|
||||
m_tranQueues.erase(itr);
|
||||
itr->second = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user