mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 00:47:33 +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() {
|
||||
clearScaleRestriction();
|
||||
saveAvatarScale();
|
||||
prepareResetTraitInstances();
|
||||
}
|
||||
|
||||
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
|
||||
// it can re-perform actions as if we just connected
|
||||
_domainHandler.setIsConnected(false);
|
||||
// Clear any reliable connections using old ID.
|
||||
_nodeSocket.clearConnections();
|
||||
}
|
||||
|
||||
setSessionLocalID(newLocalID);
|
||||
|
|
Loading…
Reference in a new issue