mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:49:12 +02:00
make sure _sockAddr is cleared if the new url isn't a hifi:// one
This commit is contained in:
parent
196f621a60
commit
ae94ab3d67
1 changed files with 4 additions and 0 deletions
|
@ -155,6 +155,10 @@ void DomainHandler::setUUID(const QUuid& uuid) {
|
||||||
void DomainHandler::setURLAndID(QUrl domainURL, QUuid domainID) {
|
void DomainHandler::setURLAndID(QUrl domainURL, QUuid domainID) {
|
||||||
_pendingDomainID = domainID;
|
_pendingDomainID = domainID;
|
||||||
|
|
||||||
|
if (domainURL.scheme() != URL_SCHEME_HIFI) {
|
||||||
|
_sockAddr.clear();
|
||||||
|
}
|
||||||
|
|
||||||
if (_domainURL != domainURL || _sockAddr.getPort() != domainURL.port()) {
|
if (_domainURL != domainURL || _sockAddr.getPort() != domainURL.port()) {
|
||||||
// re-set the domain info so that auth information is reloaded
|
// re-set the domain info so that auth information is reloaded
|
||||||
hardReset();
|
hardReset();
|
||||||
|
|
Loading…
Reference in a new issue