mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +02:00
temporary activation of node public socket in VS
This commit is contained in:
parent
628a3ba489
commit
0ae825d761
2 changed files with 6 additions and 1 deletions
|
@ -83,7 +83,7 @@ void VoxelSendThread::handlePacketSend(Node* node, VoxelNodeData* nodeData, int&
|
||||||
} else {
|
} else {
|
||||||
// just send the voxel packet
|
// just send the voxel packet
|
||||||
NodeList::getInstance()->getNodeSocket()->send(node->getActiveSocket(),
|
NodeList::getInstance()->getNodeSocket()->send(node->getActiveSocket(),
|
||||||
nodeData->getPacket(), nodeData->getPacketLength());
|
nodeData->getPacket(), nodeData->getPacketLength());
|
||||||
}
|
}
|
||||||
// remember to track our stats
|
// remember to track our stats
|
||||||
nodeData->stats.packetSent(nodeData->getPacketLength());
|
nodeData->stats.packetSent(nodeData->getPacketLength());
|
||||||
|
|
|
@ -393,6 +393,11 @@ void VoxelServer::run() {
|
||||||
NODE_TYPE_AGENT,
|
NODE_TYPE_AGENT,
|
||||||
&senderAddress,
|
&senderAddress,
|
||||||
&senderAddress);
|
&senderAddress);
|
||||||
|
|
||||||
|
// temp activation of public socket before server ping/reply is setup
|
||||||
|
if (!node->getActiveSocket()) {
|
||||||
|
node->activatePublicSocket();
|
||||||
|
}
|
||||||
|
|
||||||
NodeList::getInstance()->updateNodeWithData(node, packetData, packetLength);
|
NodeList::getInstance()->updateNodeWithData(node, packetData, packetLength);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue