summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--osdep/Phy.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp
index 23fd2ee2..02ea56f9 100644
--- a/osdep/Phy.hpp
+++ b/osdep/Phy.hpp
@@ -620,7 +620,7 @@ public:
#endif
}
- bool atEnd = false;
+ bool atEnd = _socks.empty();
for(typename std::list<PhySocketImpl>::iterator s(_socks.begin()),nexts;(!atEnd);s=nexts) {
nexts = s; ++nexts; // we can delete the linked list item, so traverse now
atEnd = (nexts == _socks.end()); // if we delete the last element, s!=_socks.end() will no longer terminate our loop