diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 01:21:47 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 01:21:47 +0000 |
commit | b239c182da07e316b4a4fcc744509bd057406d66 (patch) | |
tree | 25593306611afda101580a596ecc1d787a4a9e43 | |
parent | 5694565e097f6e4ab3b97a4c50715633a09ce45e (diff) |
TimeSyncTimer now uses repeat timer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6272 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 871675ed6..df302a7bf 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -5460,15 +5460,13 @@ class ModuleSpanningTree : public Module } }; -TimeSyncTimer::TimeSyncTimer(InspIRCd *Inst, ModuleSpanningTree *Mod) : InspTimer(43200, Inst->Time()), Instance(Inst), Module(Mod) +TimeSyncTimer::TimeSyncTimer(InspIRCd *Inst, ModuleSpanningTree *Mod) : InspTimer(43200, Inst->Time(), true), Instance(Inst), Module(Mod) { } void TimeSyncTimer::Tick(time_t TIME) { Module->BroadcastTimeSync(); - Module->SyncTimer = new TimeSyncTimer(Instance, Module); - Instance->Timers->AddTimer(Module->SyncTimer); } void SpanningTreeUtilities::DoFailOver(Link* x) |