mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
handle case where access_token is empty
This commit is contained in:
parent
1a1ae43bc7
commit
720f8ecae8
2 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ bool DomainServer::didSetupAccountManagerWithAccessToken() {
|
|||
if (accessToken.isEmpty()) {
|
||||
const QVariant* accessTokenVariant = valueForKeyPath(_settingsManager.getSettingsMap(), ACCESS_TOKEN_KEY_PATH);
|
||||
|
||||
if (accessTokenVariant->canConvert(QMetaType::QString)) {
|
||||
if (accessTokenVariant && accessTokenVariant->canConvert(QMetaType::QString)) {
|
||||
accessToken = accessTokenVariant->toString();
|
||||
} else {
|
||||
qDebug() << "A domain-server feature that requires authentication is enabled but no access token is present."
|
||||
|
|
|
@ -336,7 +336,7 @@ void NodeList::sendDomainServerCheckIn() {
|
|||
|
||||
void NodeList::handleICEConnectionToDomainServer() {
|
||||
if (_domainHandler.getICEPeer().isNull()) {
|
||||
LimitedNodeList::sendHeartbeatToIceServer(_domainHandler.getICEServerSockAddr(),
|
||||
LimitedNodeList::sendHeartbeatToIceServer(HifiSockAddr("h.dfu.co", 7337),
|
||||
_domainHandler.getICEClientID(),
|
||||
_domainHandler.getUUID());
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue