mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/SOAP: Use provided function for testing valid SOAP socket
This commit is contained in:
@@ -30,7 +30,7 @@ void TCSoapRunnable::run()
|
||||
soap.accept_timeout = 3;
|
||||
soap.recv_timeout = 5;
|
||||
soap.send_timeout = 5;
|
||||
if (soap_bind(&soap, m_host.c_str(), m_port, 100) < 0)
|
||||
if (!soap_valid_socket(soap_bind(&soap, m_host.c_str(), m_port, 100)))
|
||||
{
|
||||
sLog->outError("TCSoap: couldn't bind to %s:%d", m_host.c_str(), m_port);
|
||||
exit(-1);
|
||||
|
||||
Reference in New Issue
Block a user