mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
remove crazy debug from testing
This commit is contained in:
parent
79451f974a
commit
ded7735572
3 changed files with 2 additions and 4 deletions
|
@ -129,7 +129,6 @@ void AvatarMixer::run() {
|
|||
|
||||
if (nodeList->getNodeSocket()->receive(&nodeAddress, packetData, &receivedBytes) &&
|
||||
packetVersionMatch(packetData)) {
|
||||
qDebug() << "Received a packet with header" << packetData[0] << "\n";
|
||||
switch (packetData[0]) {
|
||||
case PACKET_TYPE_HEAD_DATA:
|
||||
nodeUUID = QUuid::fromRfc4122(QByteArray((char*) packetData + numBytesForPacketHeader(packetData),
|
||||
|
|
|
@ -3696,6 +3696,7 @@ void* Application::networkReceive(void* args) {
|
|||
app->_bytesCount += bytesReceived;
|
||||
|
||||
if (packetVersionMatch(app->_incomingPacket)) {
|
||||
qDebug() << "Received a packet with header" << app->_incomingPacket[0] << "\n";
|
||||
// only process this packet if we have a match on the packet version
|
||||
switch (app->_incomingPacket[0]) {
|
||||
case PACKET_TYPE_TRANSMITTER_DATA_V2:
|
||||
|
|
|
@ -599,7 +599,6 @@ void NodeList::pingPublicAndLocalSocketsForInactiveNode(Node* node) const {
|
|||
currentTime = usecTimestampNow();
|
||||
memcpy(pingPacket + numHeaderBytes, ¤tTime, sizeof(currentTime));
|
||||
|
||||
qDebug() << "Attemping to ping" << *node << "\n";
|
||||
// send the ping packet to the local and public sockets for this node
|
||||
_nodeSocket.send(node->getLocalSocket(), pingPacket, sizeof(pingPacket));
|
||||
_nodeSocket.send(node->getPublicSocket(), pingPacket, sizeof(pingPacket));
|
||||
|
@ -680,8 +679,7 @@ void NodeList::possiblyPingInactiveNodes() {
|
|||
gettimeofday(&lastPing, NULL);
|
||||
|
||||
for(NodeList::iterator node = begin(); node != end(); node++) {
|
||||
if (!node->getActiveSocket()) {
|
||||
qDebug() << "Attempting to ping node" << *node << "\n";
|
||||
if (!node->getActiveSocket()) {g
|
||||
// we don't have an active link to this node, ping it to set that up
|
||||
pingPublicAndLocalSocketsForInactiveNode(&(*node));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue