mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/SOAP: Stop soap socket from proceeding when nobody connected
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user