summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-18 16:29:33 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-18 16:29:33 +0000
commitc9e8e23daf94b5ec1d7a424ccd1e84af46f92ebd (patch)
treeff0ebeadf9242c1bcaae68b99cb364000d80af21
parentfb6e8d6f2078a9b41536e60c05be77afa51863c4 (diff)
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
-rw-r--r--src/modules/m_spanningtree/main.cpp2
1 files changed, 1 insertions, 1 deletions
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);