From b239c182da07e316b4a4fcc744509bd057406d66 Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 9 Jan 2007 01:21:47 +0000 Subject: TimeSyncTimer now uses repeat timer. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6272 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3