mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 09:13:47 +02:00
clear domain connection refusals on hard reset, not soft
This commit is contained in:
parent
3525498550
commit
59912012c6
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,6 @@ void DomainHandler::softReset() {
|
||||||
|
|
||||||
clearSettings();
|
clearSettings();
|
||||||
|
|
||||||
_domainConnectionRefusals.clear();
|
|
||||||
_connectionDenialsSinceKeypairRegen = 0;
|
_connectionDenialsSinceKeypairRegen = 0;
|
||||||
|
|
||||||
// cancel the failure timeout for any pending requests for settings
|
// cancel the failure timeout for any pending requests for settings
|
||||||
|
@ -119,6 +118,7 @@ void DomainHandler::hardReset() {
|
||||||
_sockAddr.clear();
|
_sockAddr.clear();
|
||||||
|
|
||||||
_hasSignalledProtocolMismatch = false;
|
_hasSignalledProtocolMismatch = false;
|
||||||
|
_domainConnectionRefusals.clear();
|
||||||
|
|
||||||
_hasCheckedForAccessToken = false;
|
_hasCheckedForAccessToken = false;
|
||||||
|
|
||||||
|
@ -408,6 +408,7 @@ void DomainHandler::processDomainServerConnectionDeniedPacket(QSharedPointer<Rec
|
||||||
qCWarning(networking) << "The domain-server denied a connection request: " << reasonMessage;
|
qCWarning(networking) << "The domain-server denied a connection request: " << reasonMessage;
|
||||||
|
|
||||||
if (!_domainConnectionRefusals.contains(reasonCode)) {
|
if (!_domainConnectionRefusals.contains(reasonCode)) {
|
||||||
|
|
||||||
_domainConnectionRefusals.append(reasonCode);
|
_domainConnectionRefusals.append(reasonCode);
|
||||||
|
|
||||||
bool shouldSignal = true;
|
bool shouldSignal = true;
|
||||||
|
|
Loading…
Reference in a new issue