fixed race condition at startup

This commit is contained in:
orignal 2016-03-11 19:27:43 -05:00
parent 94806ad0b3
commit 3c55c2d777

View File

@ -261,7 +261,7 @@ namespace transport
{
peer.numAttempts++;
auto address = peer.router->GetNTCPAddress (!context.SupportsV6 ());
if (address)
if (address && m_NTCPServer)
{
#if BOOST_VERSION >= 104900
if (!address->host.is_unspecified ()) // we have address now