Core/SOAP: Stop soap socket from proceeding when nobody connected

This commit is contained in:
leak
2011-02-15 02:00:16 +01:00
parent 36b2263799
commit dcacdd0932

View File

@@ -46,7 +46,7 @@ void TCSoapRunnable::run()
while(!World::IsStopped())
{
if (soap_accept(&soap) < 0)
if (!soap_valid_socket(soap_accept(&soap)))
continue; // ran into an accept timeout
sLog->outDebug("TCSoap: accepted connection from IP=%d.%d.%d.%d", (int)(soap.ip>>24)&0xFF, (int)(soap.ip>>16)&0xFF, (int)(soap.ip>>8)&0xFF, (int)soap.ip&0xFF);