mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:36:45 +02:00
Merge pull request #10695 from Atlante45/feat/replicants
Server side fix for jurisdiction listener
This commit is contained in:
commit
6c2134901e
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,6 @@ bool JurisdictionSender::process() {
|
||||||
|
|
||||||
// call our ReceivedPacketProcessor base class process so we'll get any pending packets
|
// call our ReceivedPacketProcessor base class process so we'll get any pending packets
|
||||||
if (continueProcessing && (continueProcessing = ReceivedPacketProcessor::process())) {
|
if (continueProcessing && (continueProcessing = ReceivedPacketProcessor::process())) {
|
||||||
auto packet = (_jurisdictionMap) ? _jurisdictionMap->packIntoPacket()
|
|
||||||
: JurisdictionMap::packEmptyJurisdictionIntoMessage(getNodeType());
|
|
||||||
int nodeCount = 0;
|
int nodeCount = 0;
|
||||||
|
|
||||||
lockRequestingNodes();
|
lockRequestingNodes();
|
||||||
|
@ -53,6 +51,8 @@ bool JurisdictionSender::process() {
|
||||||
SharedNodePointer node = DependencyManager::get<NodeList>()->nodeWithUUID(nodeUUID);
|
SharedNodePointer node = DependencyManager::get<NodeList>()->nodeWithUUID(nodeUUID);
|
||||||
|
|
||||||
if (node && node->getActiveSocket()) {
|
if (node && node->getActiveSocket()) {
|
||||||
|
auto packet = (_jurisdictionMap) ? _jurisdictionMap->packIntoPacket()
|
||||||
|
: JurisdictionMap::packEmptyJurisdictionIntoMessage(getNodeType());
|
||||||
_packetSender.queuePacketForSending(node, std::move(packet));
|
_packetSender.queuePacketForSending(node, std::move(packet));
|
||||||
nodeCount++;
|
nodeCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue