mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
add a missing break, don't double activate sockets
This commit is contained in:
parent
e7927ff837
commit
09cd8eb0fd
2 changed files with 3 additions and 3 deletions
|
@ -148,9 +148,9 @@ void AvatarMixer::processDatagram(const QByteArray& dataByteArray, const HifiSoc
|
|||
// parse positional data from an node
|
||||
nodeList->updateNodeWithData(avatarNode.data(), senderSockAddr,
|
||||
(unsigned char*) dataByteArray.data(), dataByteArray.size());
|
||||
} else {
|
||||
break;
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
case PACKET_TYPE_KILL_AVATAR: {
|
||||
nodeList->processKillNode(dataByteArray);
|
||||
|
|
|
@ -186,7 +186,7 @@ int NodeList::updateNodeWithData(Node *node, const HifiSockAddr& senderSockAddr,
|
|||
|
||||
node->setLastHeardMicrostamp(usecTimestampNow());
|
||||
|
||||
if (!senderSockAddr.isNull()) {
|
||||
if (!senderSockAddr.isNull() && !node->getActiveSocket()) {
|
||||
if (senderSockAddr == node->getPublicSocket()) {
|
||||
node->activatePublicSocket();
|
||||
} else if (senderSockAddr == node->getLocalSocket()) {
|
||||
|
|
Loading…
Reference in a new issue