Showing the changes to interface/src/Application.cpp (1 of 27 files). Show all
Unified · Split
| @@ -2543,10 +2543,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 2542 unmodified lines | ||
| 2543 | 2543 | int packetLength = endOfVoxelQueryPacket - voxelQueryPacket; |
| 2544 | 2544 | |
| 2545 | 2545 | // make sure we still have an active socket |
| 2546 | − if (node->getActiveSocket()) { | |
| 2547 | − nodeList->getNodeSocket().writeDatagram((char*) voxelQueryPacket, packetLength, | |
| 2548 | − node->getActiveSocket()->getAddress(), node->getActiveSocket()->getPort()); | |
| 2549 | − } | |
| 2546 | + nodeList->writeDatagram(reinterpret_cast<const char*>(voxelQueryPacket), packetLength, node); | |
| 2550 | 2547 | |
| 2551 | 2548 | // Feed number of bytes to corresponding channel of the bandwidth meter |
| 2552 | 2549 | _bandwidthMeter.outputStream(BandwidthMeter::VOXELS).updateValue(packetLength); |