mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
eliminated else
, this might look cleaner
This commit is contained in:
parent
5025b4a5ed
commit
4f7fdfc345
1 changed files with 7 additions and 7 deletions
|
@ -536,25 +536,25 @@ void NodeList::processDomainServerList(QSharedPointer<ReceivedMessage> message)
|
|||
QUuid domainUUID;
|
||||
packetStream >> domainUUID;
|
||||
|
||||
if (_domainHandler.isConnected() && _domainHandler.getUUID() != domainUUID) {
|
||||
// Recieved packet from different domain.
|
||||
qWarning() << "IGNORING DomainList packet from" << domainUUID << "while connected to" << _domainHandler.getUUID();
|
||||
return;
|
||||
}
|
||||
|
||||
// pull our owner UUID from the packet, it's always the first thing
|
||||
QUuid newUUID;
|
||||
packetStream >> newUUID;
|
||||
setSessionUUID(newUUID);
|
||||
|
||||
// if this was the first domain-server list from this domain, we've now connected
|
||||
if (!_domainHandler.isConnected()) {
|
||||
setSessionUUID(newUUID);
|
||||
_domainHandler.setUUID(domainUUID);
|
||||
_domainHandler.setIsConnected(true);
|
||||
|
||||
// in case we didn't use a place name to get to this domain,
|
||||
// give the address manager a chance to lookup a default one now
|
||||
DependencyManager::get<AddressManager>()->lookupShareableNameForDomainID(domainUUID);
|
||||
} else if (_domainHandler.getUUID() != domainUUID) {
|
||||
// Recieved packet from different domain.
|
||||
qWarning() << "IGNORING DomainList packet from" << domainUUID << "while connected to" << _domainHandler.getUUID();
|
||||
return;
|
||||
} else {
|
||||
setSessionUUID(newUUID);
|
||||
}
|
||||
|
||||
// pull the permissions/right/privileges for this node out of the stream
|
||||
|
|
Loading…
Reference in a new issue