Browse Source

fixed race condition

pull/433/head
orignal 9 years ago
parent
commit
37c450f1e1
  1. 2
      UPnP.cpp

2
UPnP.cpp

@ -101,7 +101,7 @@ namespace transport
void UPnP::Run () void UPnP::Run ()
{ {
auto& a = context.GetRouterInfo().GetAddresses(); const std::vector<std::shared_ptr<i2p::data::RouterInfo::Address> > a = context.GetRouterInfo().GetAddresses();
for (auto address : a) for (auto address : a)
{ {
if (!address->host.is_v6 ()) if (!address->host.is_v6 ())

Loading…
Cancel
Save