diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-03-15 15:38:09 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-03-15 15:38:09 +0100 |
commit | 0babd8c0783242fc647cdcdfefb399c099e367ad (patch) | |
tree | 4cc656f9d1555349fb4b4068e0422f78634d0f7b /src/inspircd.cpp | |
parent | ea590a5d80741c3bc030cb0a2fcb3c59da4fd078 (diff) |
Change allocation of InspIRCd::Timers to be physically part of the object containing it
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 50899435b..5097960e8 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -140,7 +140,6 @@ void InspIRCd::Cleanup() DeleteZero(this->Config); DeleteZero(this->PI); DeleteZero(this->Threads); - DeleteZero(this->Timers); SocketEngine::Deinit(); Logs->CloseLogs(); DeleteZero(this->Logs); @@ -270,7 +269,6 @@ InspIRCd::InspIRCd(int argc, char** argv) : this->BanCache = 0; this->Modules = 0; this->stats = 0; - this->Timers = 0; this->Parser = 0; this->XLines = 0; this->Modes = 0; @@ -299,7 +297,6 @@ InspIRCd::InspIRCd(int argc, char** argv) : this->Modules = new ModuleManager(); dynamic_reference_base::reset_all(); this->stats = new serverstats(); - this->Timers = new TimerManager; this->Parser = new CommandParser; this->XLines = new XLineManager; @@ -719,7 +716,7 @@ void InspIRCd::Run() FOREACH_MOD(OnGarbageCollect, ()); } - Timers->TickTimers(TIME.tv_sec); + Timers.TickTimers(TIME.tv_sec); Users->DoBackgroundUserStuff(); if ((TIME.tv_sec % 5) == 0) |