summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 01:21:47 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 01:21:47 +0000
commitb239c182da07e316b4a4fcc744509bd057406d66 (patch)
tree25593306611afda101580a596ecc1d787a4a9e43 /src
parent5694565e097f6e4ab3b97a4c50715633a09ce45e (diff)
TimeSyncTimer now uses repeat timer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6272 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp4
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)