瀏覽代碼

Typo fix.

Adam Ierymenko 9 年之前
父節點
當前提交
ff9f8b1c2b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      node/Peer.cpp

+ 1 - 1
node/Peer.cpp

@@ -303,7 +303,7 @@ bool Peer::doPingAndKeepalive(uint64_t now,int inetAddressFamily)
 	}
 
 	if (bestp >= 0) {
-		if ((now - _paths[best].lastReceive) >= ZT_PEER_PING_PERIOD) {
+		if ((now - _paths[bestp].lastReceive) >= ZT_PEER_PING_PERIOD) {
 			sendHELLO(_paths[bestp].path->localAddress(),_paths[bestp].path->address(),now);
 		} else if (_paths[bestp].path->needsHeartbeat(now)) {
 			_natKeepaliveBuf += (uint32_t)((now * 0x9e3779b1) >> 1); // tumble this around to send constantly varying (meaningless) payloads