1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

fixed race condition

This commit is contained in:
orignal 2016-03-21 15:13:07 -04:00
parent a003e396c5
commit 37c450f1e1

View File

@ -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 ())