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 | void MetavoxelClient::sendData(const QByteArray& data) { | 227 | void MetavoxelClient::sendData(const QByteArray& data) { |
| 228 | QMutexLocker locker(&_node->getMutex()); | 228 | QMutexLocker locker(&_node->getMutex()); |
| 229 | const HifiSockAddr* address = _node->getActiveSocket(); | 229 | NodeList::getInstance()->writeDatagram(data, _node); |
| 230 | if (address) { | ||
| 231 | NodeList::getInstance()->getNodeSocket().writeDatagram(data, address->getAddress(), address->getPort()); | ||
| 232 | } | ||
| 233 | } | 230 | } |
| 234 | 231 | ||
| 235 | void MetavoxelClient::readPacket(Bitstream& in) { | 232 | void MetavoxelClient::readPacket(Bitstream& in) { |