From 08a368a9fd0b9c1ed999609b169139e6f0eaa7a1 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 29 Oct 2013 15:21:55 -0700 Subject: [PATCH] add debug to catch AvatarMixer ghosting --- libraries/shared/src/NodeList.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/shared/src/NodeList.cpp b/libraries/shared/src/NodeList.cpp index fcd55116ad..db03de68bf 100644 --- a/libraries/shared/src/NodeList.cpp +++ b/libraries/shared/src/NodeList.cpp @@ -772,14 +772,19 @@ void* removeSilentNodes(void *args) { checkTimeUsecs = usecTimestampNow(); for(NodeList::iterator node = nodeList->begin(); node != nodeList->end(); ++node) { + qDebug() << "Locking node" << node->getUUID() << "\n"; node->lock(); + qDebug() << "N:" << usecTimestampNow() << "LH:" << node->getLastHeardMicrostamp() << "\n"; + qDebug() << "Diff:" << usecTimestampNow() - node->getLastHeardMicrostamp() << "\n"; + if ((usecTimestampNow() - node->getLastHeardMicrostamp()) > NODE_SILENCE_THRESHOLD_USECS) { // kill this node, don't lock - we already did it nodeList->killNode(&(*node), false); } node->unlock(); + qDebug() << "Unlocking node" << node->getUUID() << "\n"; } sleepTime = NODE_SILENCE_THRESHOLD_USECS - (usecTimestampNow() - checkTimeUsecs);