mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
fixing settings check in domain handler
This commit is contained in:
parent
795580f4e1
commit
01594d7a52
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,6 @@
|
|||
#include "UserActivityLogger.h"
|
||||
#include "NetworkLogging.h"
|
||||
|
||||
Setting::Handle<bool> enableInterstitialMode{ "enableInterstitialMode", false };
|
||||
|
||||
DomainHandler::DomainHandler(QObject* parent) :
|
||||
QObject(parent),
|
||||
_sockAddr(HifiSockAddr(QHostAddress::Null, DEFAULT_DOMAIN_SERVER_PORT)),
|
||||
|
@ -488,6 +486,8 @@ void DomainHandler::processDomainServerConnectionDeniedPacket(QSharedPointer<Rec
|
|||
#if defined(Q_OS_ANDROID)
|
||||
emit domainConnectionRefused(reasonMessage, (int)reasonCode, extraInfo);
|
||||
#else
|
||||
Setting::Handle<bool> enableInterstitialMode{ "enableInterstitialMode", false };
|
||||
|
||||
if (enableInterstitialMode.get()) {
|
||||
if (reasonCode == ConnectionRefusedReason::ProtocolMismatch || reasonCode == ConnectionRefusedReason::NotAuthorized) {
|
||||
// ingest the error - this is a "hard" connection refusal.
|
||||
|
|
Loading…
Reference in a new issue