mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-24 07:05:50 -07:00
Minor thing, unrelated to bug but missing.
This commit is contained in:
parent
ca4e35d52c
commit
bee3ea79f0
1 changed files with 1 additions and 1 deletions
|
@ -962,7 +962,7 @@ void Switch::doAnythingWaitingForPeer(void* tPtr, const SharedPtr<Peer>& peer)
|
||||||
Mutex::Lock _l(_txQueue_m);
|
Mutex::Lock _l(_txQueue_m);
|
||||||
for (std::list<TXQueueEntry>::iterator txi(_txQueue.begin()); txi != _txQueue.end();) {
|
for (std::list<TXQueueEntry>::iterator txi(_txQueue.begin()); txi != _txQueue.end();) {
|
||||||
if (txi->dest == peer->address()) {
|
if (txi->dest == peer->address()) {
|
||||||
if (_trySend(tPtr, txi->packet, txi->encrypt, 0, txi->flowId)) {
|
if (_trySend(tPtr, txi->packet, txi->encrypt, txi->nwid, txi->flowId)) {
|
||||||
_txQueue.erase(txi++);
|
_txQueue.erase(txi++);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue