From c9e8e23daf94b5ec1d7a424ccd1e84af46f92ebd Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 18 Feb 2010 16:29:33 +0000 Subject: Fix double-erase of iterator if a server dies and times out at the same time git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12490 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index b9e36ba25..68367cee0 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -333,7 +333,7 @@ void ModuleSpanningTree::DoConnectTimeout(time_t curtime) Utils->timeoutlist.erase(me); s->Close(); } - if (curtime > s->age + p.second) + else if (curtime > s->age + p.second) { ServerInstance->SNO->WriteToSnoMask('l',"CONNECT: Error connecting \002%s\002 (timeout of %d seconds)",p.first.c_str(),p.second); Utils->timeoutlist.erase(me); -- cgit v1.2.3