Skip to content

Commit

Permalink
Fix double-erase of iterator if a server dies and times out at the sa…
Browse files Browse the repository at this point in the history
…me time

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12490 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
danieldg committed Feb 18, 2010
1 parent fb6e8d6 commit c9e8e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/m_spanningtree/main.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit c9e8e23

Please sign in to comment.