From dcacdd0932060e18f77577916d6476dad9a07c74 Mon Sep 17 00:00:00 2001 From: leak Date: Tue, 15 Feb 2011 02:00:16 +0100 Subject: Core/SOAP: Stop soap socket from proceeding when nobody connected --- src/server/worldserver/TCSoap/TCSoap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/worldserver/TCSoap/TCSoap.cpp b/src/server/worldserver/TCSoap/TCSoap.cpp index a6e007ba8fe..66a58caba80 100755 --- a/src/server/worldserver/TCSoap/TCSoap.cpp +++ b/src/server/worldserver/TCSoap/TCSoap.cpp @@ -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); -- cgit v1.2.3