mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +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
|
||||
static unsigned char* checkInPacket = NULL;
|
||||
static int checkInPacketSize;
|
||||
|
||||
if (!checkInPacket) {
|
||||
int numBytesAgentsOfInterest = _agentTypesOfInterest ? strlen((char*) _agentTypesOfInterest) : 0;
|
||||
|
@ -236,10 +237,10 @@ void AgentList::sendDomainServerCheckIn() {
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue