*[8463] Fixed race conditions in LockedQueue. Author: XTZGZoReX
--HG-- branch : trunk
This commit is contained in:
1 parent
fd88d0dc08
commit
aed229dfe6
2 files changed
+24
-60
No files matched your search
@@ -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