mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:56:55 +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 "UserActivityLogger.h"
|
||||||
#include "NetworkLogging.h"
|
#include "NetworkLogging.h"
|
||||||
|
|
||||||
Setting::Handle<bool> enableInterstitialMode{ "enableInterstitialMode", false };
|
|
||||||
|
|
||||||
DomainHandler::DomainHandler(QObject* parent) :
|
DomainHandler::DomainHandler(QObject* parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
_sockAddr(HifiSockAddr(QHostAddress::Null, DEFAULT_DOMAIN_SERVER_PORT)),
|
_sockAddr(HifiSockAddr(QHostAddress::Null, DEFAULT_DOMAIN_SERVER_PORT)),
|
||||||
|
@ -488,6 +486,8 @@ void DomainHandler::processDomainServerConnectionDeniedPacket(QSharedPointer<Rec
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
emit domainConnectionRefused(reasonMessage, (int)reasonCode, extraInfo);
|
emit domainConnectionRefused(reasonMessage, (int)reasonCode, extraInfo);
|
||||||
#else
|
#else
|
||||||
|
Setting::Handle<bool> enableInterstitialMode{ "enableInterstitialMode", false };
|
||||||
|
|
||||||
if (enableInterstitialMode.get()) {
|
if (enableInterstitialMode.get()) {
|
||||||
if (reasonCode == ConnectionRefusedReason::ProtocolMismatch || reasonCode == ConnectionRefusedReason::NotAuthorized) {
|
if (reasonCode == ConnectionRefusedReason::ProtocolMismatch || reasonCode == ConnectionRefusedReason::NotAuthorized) {
|
||||||
// ingest the error - this is a "hard" connection refusal.
|
// ingest the error - this is a "hard" connection refusal.
|
||||||
|
|
Loading…
Reference in a new issue