only force a new temp name if already a temp domain-server

This commit is contained in:
Stephen Birarda 2016-08-04 09:32:01 -07:00
parent ba49fd2c61
commit f3e30221f0

View file

@ -1168,6 +1168,8 @@ void DomainServer::handleMetaverseHeartbeatError(QNetworkReply& requestReply) {
return;
}
// only attempt to grab a new temporary name if we're already a temporary domain server
if (_type == MetaverseTemporaryDomain) {
// check if we need to force a new temporary domain name
switch (requestReply.error()) {
// if we have a temporary domain with a bad token, we get a 401
@ -1206,6 +1208,7 @@ void DomainServer::handleMetaverseHeartbeatError(QNetworkReply& requestReply) {
qWarning() << "Already attempted too many temporary domain requests. Please set a domain ID manually or restart.";
}
}
}
void DomainServer::sendICEServerAddressToMetaverseAPI() {
if (!_iceServerSocket.isNull()) {