Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 27 files). Show all
Unified · Split
| @@ -226,10 +226,7 @@ void MetavoxelClient::receivedData(const QByteArray& data) { · 225 unmodified lines | ||
| 226 | 226 | |
| 227 | 227 | void MetavoxelClient::sendData(const QByteArray& data) { |
| 228 | 228 | QMutexLocker locker(&_node->getMutex()); |
| 229 | − const HifiSockAddr* address = _node->getActiveSocket(); | |
| 230 | − if (address) { | |
| 231 | − NodeList::getInstance()->getNodeSocket().writeDatagram(data, address->getAddress(), address->getPort()); | |
| 232 | − } | |
| 229 | + NodeList::getInstance()->writeDatagram(data, _node); | |
| 233 | 230 | } |
| 234 | 231 | |
| 235 | 232 | void MetavoxelClient::readPacket(Bitstream& in) { |