mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 13:52:49 +02:00
only force a new temp name if already a temp domain-server
This commit is contained in:
parent
ba49fd2c61
commit
f3e30221f0
1 changed files with 33 additions and 30 deletions
|
@ -1168,6 +1168,8 @@ void DomainServer::handleMetaverseHeartbeatError(QNetworkReply& requestReply) {
|
||||||
return;
|
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
|
// check if we need to force a new temporary domain name
|
||||||
switch (requestReply.error()) {
|
switch (requestReply.error()) {
|
||||||
// if we have a temporary domain with a bad token, we get a 401
|
// 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.";
|
qWarning() << "Already attempted too many temporary domain requests. Please set a domain ID manually or restart.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void DomainServer::sendICEServerAddressToMetaverseAPI() {
|
void DomainServer::sendICEServerAddressToMetaverseAPI() {
|
||||||
if (!_iceServerSocket.isNull()) {
|
if (!_iceServerSocket.isNull()) {
|
||||||
|
|
Loading…
Reference in a new issue