diff options
| author | 2007-08-21 18:43:06 +0000 | |
|---|---|---|
| committer | 2007-08-21 18:43:06 +0000 | |
| commit | 464f720d50b8f2390219a5fb68660bdca71ae345 (patch) | |
| tree | 2f019cb095e7c584dada8e489337226c21c56bb8 /src/modules/m_spanningtree/main.cpp | |
| parent | Check for libgnugetopt, we need it in 4.x (diff) | |
Introducing major crashy bugs to annoy Stskeeps... just kidding, backport of stability fix in r7787
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7788 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 685c156da..f73e7630c 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -555,7 +555,8 @@ void ModuleSpanningTree::ConnectServer(Link* x) else { ServerInstance->SNO->WriteToSnoMask('l',"CONNECT: Error connecting \002%s\002: %s.",x->Name.c_str(),strerror(errno)); - delete newsocket; + if (ServerInstance->SocketCull.find(newsocket) == ServerInstance->SocketCull.end()) + ServerInstance->SocketCull[newsocket] = newsocket; Utils->DoFailOver(x); } } |
