mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
*[8463] Fixed race conditions in LockedQueue. Author: XTZGZoReX
--HG-- branch : trunk
This commit is contained in:
@@ -73,9 +73,9 @@ void SqlQuery::Execute(Database *db)
|
||||
void SqlResultQueue::Update()
|
||||
{
|
||||
/// execute the callbacks waiting in the synchronization queue
|
||||
while(!empty())
|
||||
Trinity::IQueryCallback* callback;
|
||||
while (next(callback))
|
||||
{
|
||||
Trinity::IQueryCallback * callback = next();
|
||||
callback->Execute();
|
||||
delete callback;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user