Forward port r8629: Fix for bug #458 - servers going missing on collision etc

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8630 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-01-04 18:06:20 +00:00
parent 66e41aba0f
commit 32790543e1

View File

@ -1641,7 +1641,8 @@ void TreeSocket::OnTimeout()
void TreeSocket::OnClose()
{
if (this->LinkState == LISTENER)
// Test fix for big fuckup
if (this->LinkState != CONNECTED)
return;
// Connection closed.