mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:37:35 +02:00
Merge pull request #15541 from SimonWalton-HiFi/clear-connections-on-NodeID-change
Clear any reliable connection state upon Node ID change
This commit is contained in:
commit
46d75a61b3
2 changed files with 3 additions and 0 deletions
|
@ -3755,6 +3755,7 @@ void MyAvatar::restrictScaleFromDomainSettings(const QJsonObject& domainSettings
|
||||||
void MyAvatar::leaveDomain() {
|
void MyAvatar::leaveDomain() {
|
||||||
clearScaleRestriction();
|
clearScaleRestriction();
|
||||||
saveAvatarScale();
|
saveAvatarScale();
|
||||||
|
prepareResetTraitInstances();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::saveAvatarScale() {
|
void MyAvatar::saveAvatarScale() {
|
||||||
|
|
|
@ -665,6 +665,8 @@ void NodeList::processDomainServerList(QSharedPointer<ReceivedMessage> message)
|
||||||
// tell the domain handler that we're no longer connected so that below
|
// tell the domain handler that we're no longer connected so that below
|
||||||
// it can re-perform actions as if we just connected
|
// it can re-perform actions as if we just connected
|
||||||
_domainHandler.setIsConnected(false);
|
_domainHandler.setIsConnected(false);
|
||||||
|
// Clear any reliable connections using old ID.
|
||||||
|
_nodeSocket.clearConnections();
|
||||||
}
|
}
|
||||||
|
|
||||||
setSessionLocalID(newLocalID);
|
setSessionLocalID(newLocalID);
|
||||||
|
|
Loading…
Reference in a new issue