mirror of
https://github.com/anope/anope.git
synced 2026-07-10 06:23:14 +02:00
Added a classbase for the major classes, makes dynamic_reference invalidation really work.
This also cleans up a bit of the code in the modestacker.
This commit is contained in:
@@ -251,17 +251,17 @@ class ModuleSQL : public Module
|
||||
|
||||
for (unsigned i = this->QueryRequests.size(); i > 0; --i)
|
||||
{
|
||||
QueryRequest &r = this->QueryRequests[i];
|
||||
QueryRequest &r = this->QueryRequests[i - 1];
|
||||
|
||||
if (r.interface && r.interface->owner == m)
|
||||
{
|
||||
if (i == 0)
|
||||
if (i == 1)
|
||||
{
|
||||
r.service->Lock.Lock();
|
||||
r.service->Lock.Unlock();
|
||||
}
|
||||
|
||||
this->QueryRequests.erase(this->QueryRequests.begin() + i);
|
||||
this->QueryRequests.erase(this->QueryRequests.begin() + i - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user