mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +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 {
|
||||
// just send the voxel packet
|
||||
NodeList::getInstance()->getNodeSocket()->send(node->getActiveSocket(),
|
||||
nodeData->getPacket(), nodeData->getPacketLength());
|
||||
nodeData->getPacket(), nodeData->getPacketLength());
|
||||
}
|
||||
// remember to track our stats
|
||||
nodeData->stats.packetSent(nodeData->getPacketLength());
|
||||
|
|
|
@ -393,6 +393,11 @@ void VoxelServer::run() {
|
|||
NODE_TYPE_AGENT,
|
||||
&senderAddress,
|
||||
&senderAddress);
|
||||
|
||||
// temp activation of public socket before server ping/reply is setup
|
||||
if (!node->getActiveSocket()) {
|
||||
node->activatePublicSocket();
|
||||
}
|
||||
|
||||
NodeList::getInstance()->updateNodeWithData(node, packetData, packetLength);
|
||||
|
||||
|
|
Loading…
Reference in a new issue