Browse Source

Fix pointer bug.

pull/1/head
Adam Ierymenko 9 years ago
parent
commit
180049a277
  1. 3
      node/Switch.cpp
  2. 2
      node/Switch.hpp

3
node/Switch.cpp

@ -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;

2
node/Switch.hpp

@ -144,7 +144,7 @@ private:
const RuntimeEnvironment *const RR;
uint64_t _lastBeaconResponse;
uint64_t _lastCheckedQueues;
volatile uint64_t _lastCheckedQueues;
// Time we last sent a WHOIS request for each address
Hashtable< Address,uint64_t > _lastSentWhoisRequest;

Loading…
Cancel
Save