mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8463] Fixed race conditions in LockedQueue.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
7f444189c6
commit
66ffd80ed2
6 changed files with 42 additions and 86 deletions
|
|
@ -71,9 +71,9 @@ void SqlQuery::Execute(Database *db)
|
|||
void SqlResultQueue::Update()
|
||||
{
|
||||
/// execute the callbacks waiting in the synchronization queue
|
||||
while(!empty())
|
||||
MaNGOS::IQueryCallback* callback;
|
||||
while (next(callback))
|
||||
{
|
||||
MaNGOS::IQueryCallback * callback = next();
|
||||
callback->Execute();
|
||||
delete callback;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue