From 6e6846b68a28d858275702e6662e79328e62c60e Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 1 Oct 2009 14:40:17 +0000 Subject: Fix some valgrind warnings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11790 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/utils.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 5091859e1..5862d95e7 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -632,6 +632,7 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind) { reference A = new Autoconnect; A->Period = Conf->ReadInteger("autoconnect", "period", j, true); + A->NextConnectTime = ServerInstance->Time() + A->Period; A->position = -1; std::string servers = Conf->ReadValue("autoconnect", "server", j); irc::spacesepstream ss(servers); @@ -641,10 +642,6 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind) A->servers.push_back(server); } - // Fix: Only trip autoconnects if this wouldn't delay autoconnect.. - if (A->NextConnectTime > ((time_t)(ServerInstance->Time() + A->Period))) - A->NextConnectTime = ServerInstance->Time() + A->Period; - if (A->Period <= 0) { throw CoreException("Invalid configuration for autoconnect, period not a positive integer!"); -- cgit v1.2.3