make sure _sockAddr is cleared if the new url isn't a hifi:// one

This commit is contained in:
Seth Alves 2018-03-21 15:28:12 -07:00
parent 196f621a60
commit ae94ab3d67

View file

@ -155,6 +155,10 @@ void DomainHandler::setUUID(const QUuid& uuid) {
void DomainHandler::setURLAndID(QUrl domainURL, QUuid domainID) {
_pendingDomainID = domainID;
if (domainURL.scheme() != URL_SCHEME_HIFI) {
_sockAddr.clear();
}
if (_domainURL != domainURL || _sockAddr.getPort() != domainURL.port()) {
// re-set the domain info so that auth information is reloaded
hardReset();