Fix pointer bug.

This commit is contained in:
Adam Ierymenko 2017-08-23 16:55:22 -07:00
parent 6ee201865b
commit 180049a277
2 changed files with 2 additions and 3 deletions

View file

@ -620,8 +620,7 @@ unsigned long Switch::doTimerTasks(void *tPtr,uint64_t now)
_txQueue.erase(txi++);
} else if ((now - txi->creationTime) > ZT_TRANSMIT_QUEUE_TIMEOUT) {
RR->t->txTimedOut(tPtr,txi->dest);
_txQueue.erase(txi);
++txi;
_txQueue.erase(txi++);
} else if (!RR->topology->getPeer(tPtr,txi->dest)) {
requestWhois(tPtr,now,txi->dest);
++txi;