1
0

Merge pull request #1151 from mc-server/immediatesocketrebind

MCS sockets can be rebound immediately
This commit is contained in:
Mattes D 2014-07-04 18:09:29 +02:00
commit 7cc7429fa0

View File

@ -179,6 +179,8 @@ bool cHTTPServer::Initialize(const AString & a_PortsIPv4, const AString & a_Port
// Open up requested ports:
bool HasAnyPort;
m_ListenThreadIPv4.SetReuseAddr(true);
m_ListenThreadIPv6.SetReuseAddr(true);
HasAnyPort = m_ListenThreadIPv4.Initialize(a_PortsIPv4);
HasAnyPort = m_ListenThreadIPv6.Initialize(a_PortsIPv6) || HasAnyPort;
if (!HasAnyPort)