From 039ef0750cec00789db2bf4dda49e98ff53c2ee2 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 15 Jul 2015 18:52:59 -0700 Subject: [PATCH] set jurisdiction listener object name for thread identification --- libraries/networking/src/ReceivedPacketProcessor.cpp | 1 - libraries/octree/src/JurisdictionListener.cpp | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/ReceivedPacketProcessor.cpp b/libraries/networking/src/ReceivedPacketProcessor.cpp index 15b46cdf8f..cc516bdbbd 100644 --- a/libraries/networking/src/ReceivedPacketProcessor.cpp +++ b/libraries/networking/src/ReceivedPacketProcessor.cpp @@ -39,7 +39,6 @@ bool ReceivedPacketProcessor::process() { quint64 now = usecTimestampNow(); quint64 sinceLastWindow = now - _lastWindowAt; - if (sinceLastWindow > USECS_PER_SECOND) { lock(); float secondsSinceLastWindow = sinceLastWindow / USECS_PER_SECOND; diff --git a/libraries/octree/src/JurisdictionListener.cpp b/libraries/octree/src/JurisdictionListener.cpp index 0fe67d046d..4979972c8a 100644 --- a/libraries/octree/src/JurisdictionListener.cpp +++ b/libraries/octree/src/JurisdictionListener.cpp @@ -20,6 +20,8 @@ JurisdictionListener::JurisdictionListener(NodeType_t type) : _nodeType(type), _packetSender(JurisdictionListener::DEFAULT_PACKETS_PER_SECOND) { + setObjectName("Jurisdiction Listener"); + connect(DependencyManager::get().data(), &NodeList::nodeKilled, this, &JurisdictionListener::nodeKilled); // tell our NodeList we want to hear about nodes with our node type @@ -34,7 +36,7 @@ void JurisdictionListener::nodeKilled(SharedNodePointer node) { bool JurisdictionListener::queueJurisdictionRequest() { auto packet = NLPacket::create(PacketType::JurisdictionRequest, 0); - + auto nodeList = DependencyManager::get(); int nodeCount = 0;