Browse Source

fixed race condition at startup

pull/412/head
orignal 9 years ago
parent
commit
3c55c2d777
  1. 2
      Transports.cpp

2
Transports.cpp

@ -261,7 +261,7 @@ namespace transport @@ -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

Loading…
Cancel
Save