mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Fix for poll() in Phy<> with no sockets open. Only affects tcp-proxy.
This commit is contained in:
parent
e5e11c1b24
commit
ab720a6f1e
1 changed files with 1 additions and 1 deletions
|
@ -620,7 +620,7 @@ public:
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool atEnd = false;
|
bool atEnd = _socks.empty();
|
||||||
for(typename std::list<PhySocketImpl>::iterator s(_socks.begin()),nexts;(!atEnd);s=nexts) {
|
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
|
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
|
atEnd = (nexts == _socks.end()); // if we delete the last element, s!=_socks.end() will no longer terminate our loop
|
||||||
|
|
Loading…
Add table
Reference in a new issue