mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
fixed race condition
This commit is contained in:
parent
35e8a027ad
commit
8e835f2f6b
1 changed files with 2 additions and 1 deletions
|
@ -752,7 +752,8 @@ namespace data
|
||||||
|
|
||||||
std::shared_ptr<const RouterInfo::Address> RouterInfo::GetAddress (TransportStyle s, bool v4only, bool v6only) const
|
std::shared_ptr<const RouterInfo::Address> RouterInfo::GetAddress (TransportStyle s, bool v4only, bool v6only) const
|
||||||
{
|
{
|
||||||
for (const auto& address : *m_Addresses)
|
auto addresses = m_Addresses;
|
||||||
|
for (const auto& address : *addresses)
|
||||||
{
|
{
|
||||||
if (address->transportStyle == s)
|
if (address->transportStyle == s)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue