*[8463] Fixed race conditions in LockedQueue. Author: XTZGZoReX

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-11 13:41:37 -07:00
parent fd88d0dc08
commit aed229dfe6
2 changed files with 24 additions and 60 deletions

View File

@@ -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;
}