Skip to content

Commit

Permalink
fixed race condition at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 12, 2016
1 parent 94806ad commit 3c55c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Transports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c55c2d

Please sign in to comment.