mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 17:54:30 +02:00
Clear any reliable connection state upon Node ID change
This commit is contained in:
parent
930032bcc6
commit
4b51d81b42
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