From 37c450f1e12f4eecd973c11fbecd983b6321a356 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 21 Mar 2016 15:13:07 -0400 Subject: [PATCH] fixed race condition --- UPnP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPnP.cpp b/UPnP.cpp index eb86d709..fea2ff9e 100644 --- a/UPnP.cpp +++ b/UPnP.cpp @@ -101,7 +101,7 @@ namespace transport void UPnP::Run () { - auto& a = context.GetRouterInfo().GetAddresses(); + const std::vector > a = context.GetRouterInfo().GetAddresses(); for (auto address : a) { if (!address->host.is_v6 ())