mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-05 02:40:37 +02:00
Merge pull request #534 from ey6es/master
Fix for voxel server (etc.) not connecting.
This commit is contained in:
commit
11fcd8f72f
1 changed files with 3 additions and 2 deletions
|
@ -205,6 +205,7 @@ void AgentList::sendDomainServerCheckIn() {
|
||||||
|
|
||||||
// construct the DS check in packet if we need to
|
// construct the DS check in packet if we need to
|
||||||
static unsigned char* checkInPacket = NULL;
|
static unsigned char* checkInPacket = NULL;
|
||||||
|
static int checkInPacketSize;
|
||||||
|
|
||||||
if (!checkInPacket) {
|
if (!checkInPacket) {
|
||||||
int numBytesAgentsOfInterest = _agentTypesOfInterest ? strlen((char*) _agentTypesOfInterest) : 0;
|
int numBytesAgentsOfInterest = _agentTypesOfInterest ? strlen((char*) _agentTypesOfInterest) : 0;
|
||||||
|
@ -236,10 +237,10 @@ void AgentList::sendDomainServerCheckIn() {
|
||||||
packetPosition += numBytesAgentsOfInterest;
|
packetPosition += numBytesAgentsOfInterest;
|
||||||
}
|
}
|
||||||
|
|
||||||
*packetPosition = '\0';
|
checkInPacketSize = packetPosition - checkInPacket;
|
||||||
}
|
}
|
||||||
|
|
||||||
_agentSocket.send(DOMAIN_IP, DOMAINSERVER_PORT, checkInPacket, strlen((char*) checkInPacket));
|
_agentSocket.send(DOMAIN_IP, DOMAINSERVER_PORT, checkInPacket, checkInPacketSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
int AgentList::processDomainServerList(unsigned char *packetData, size_t dataBytes) {
|
int AgentList::processDomainServerList(unsigned char *packetData, size_t dataBytes) {
|
||||||
|
|
Loading…
Reference in a new issue