mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 21:17:52 +00:00
Merge pull request #192 from mwarning/replace_erase
replace vector::erase, was missed in a previous commit (ref #186)
This commit is contained in:
commit
daebce4994
@ -330,7 +330,9 @@ void Multicaster::_add(uint64_t now,uint64_t nwid,const MulticastGroup &mg,Multi
|
||||
|
||||
for(std::vector<OutboundMulticast>::iterator tx(gs.txQueue.begin());tx!=gs.txQueue.end();) {
|
||||
if (tx->atLimit()) {
|
||||
gs.txQueue.erase(tx++);
|
||||
// erase element (replace by last)
|
||||
*tx = gs.txQueue.back();
|
||||
gs.txQueue.pop_back();
|
||||
} else {
|
||||
tx->sendIfNew(RR,member);
|
||||
if (tx->atLimit()) {
|
||||
|
Loading…
Reference in New Issue
Block a user