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

--HG--
branch : trunk
This commit is contained in:
maximius committed 2009-09-11 13:41:37 -07:00
1 parent fd88d0dc08
commit aed229dfe6
2 files changed
+24 -60

No files matched your search

+2 -2
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;
}