mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 12:43:19 +02:00
Assign random UUID to DS without one.
This commit is contained in:
parent
70cf25bd8b
commit
97da515585
1 changed files with 2 additions and 0 deletions
|
@ -389,6 +389,8 @@ void DomainServer::setupNodeListAndAssignments() {
|
|||
const QVariant* idValueVariant = valueForKeyPath(settingsMap, METAVERSE_DOMAIN_ID_KEY_PATH);
|
||||
if (idValueVariant) {
|
||||
nodeList->setSessionUUID(idValueVariant->toString());
|
||||
} else {
|
||||
nodeList->setSessionUUID(QUuid::createUuid()); // Use random UUID
|
||||
}
|
||||
|
||||
connect(nodeList.data(), &LimitedNodeList::nodeAdded, this, &DomainServer::nodeAdded);
|
||||
|
|
Loading…
Reference in a new issue