mirror of
https://github.com/anope/anope.git
synced 2026-06-24 10:16:37 +02:00
Properly remove old callbacks from modules internal list of callbacks list, and cleaned up some of the timers code
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2524 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -479,14 +479,10 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, Priority s, Modul
|
||||
void ModuleManager::ClearTimers(Module *m)
|
||||
{
|
||||
std::list<Timer *>::iterator it;
|
||||
Timer *t2;
|
||||
|
||||
for (it = m->CallBacks.begin(); it != m->CallBacks.end(); ++it)
|
||||
{
|
||||
t2 = *it;
|
||||
|
||||
TimerManager::DelTimer(t2);
|
||||
TimerManager::DelTimer(*it);
|
||||
}
|
||||
|
||||
m->CallBacks.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user