summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-27 17:14:49 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-27 17:14:49 -0700
commitfadb2919625f72b7f0fbff17478ac467a86e657b (patch)
tree96228c2d58e459213af11cac3c2a541884b6ff3c /node
parentf0003ea92277039f70dd6f16920dd2db9fb2fb1e (diff)
downloadinfinitytier-fadb2919625f72b7f0fbff17478ac467a86e657b.tar.gz
infinitytier-fadb2919625f72b7f0fbff17478ac467a86e657b.zip
Fix infinite loop typo.
Diffstat (limited to 'node')
-rw-r--r--node/SelfAwareness.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/node/SelfAwareness.hpp b/node/SelfAwareness.hpp
index 9fcefa62..1b160a3f 100644
--- a/node/SelfAwareness.hpp
+++ b/node/SelfAwareness.hpp
@@ -72,10 +72,12 @@ public:
inline std::vector< std::pair<Address,InetAddress> > getReportedSurface() const
{
std::vector< std::pair<Address,InetAddress> > r;
- Mutex::Lock _l(_phy_m);
- r.reserve(_phy.size());
- for(std::map< PhySurfaceKey,PhySurfaceEntry >::const_iterator p(_phy.begin());p!=_phy.end();)
- r.push_back(std::pair<Address,InetAddress>(p->first.reporter,p->second.mySurface));
+ {
+ Mutex::Lock _l(_phy_m);
+ r.reserve(_phy.size());
+ for(std::map< PhySurfaceKey,PhySurfaceEntry >::const_iterator p(_phy.begin());p!=_phy.end();++p)
+ r.push_back(std::pair<Address,InetAddress>(p->first.reporter,p->second.mySurface));
+ }
return r;
}