keep known nodes alive when we receive a packet from them

This commit is contained in:
Stephen Birarda 2014-03-03 12:49:46 -08:00
parent 5c1ba4264a
commit 1b7d24a79c

View file

@ -264,6 +264,11 @@ void NodeList::processNodeData(const HifiSockAddr& senderSockAddr, const QByteAr
break;
}
default:
// the node decided not to do anything with this packet
// if it comes from a known source we should keep that node alive
SharedNodePointer matchingNode = sendingNodeForPacket(packet);
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
break;
}
}