mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-06 22:53:32 +02:00
Apply suggestions from code review
Co-authored-by: Heather Anderson <heath@odysseus.anderson.name>
This commit is contained in:
parent
35948d7467
commit
019e012f2e
3 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ AssignmentClient::AssignmentClient(Assignment::Type requestAssignmentType, QStri
|
|||
_assignmentServerSocket.setObjectName("AssignmentServer");
|
||||
nodeList->setAssignmentServerSocket(_assignmentServerSocket);
|
||||
|
||||
if (disableDomainPortAutoDiscovery == true) {
|
||||
if (disableDomainPortAutoDiscovery) {
|
||||
_disableDomainPortAutoDiscovery = disableDomainPortAutoDiscovery;
|
||||
qCDebug(assignment_client) << "Disabling domain port auto discovery by the assignment client due to parsed command line parameter.";
|
||||
}
|
||||
|
|
|
@ -377,7 +377,7 @@ void NodeList::sendDomainServerCheckIn() {
|
|||
// if so we need to make sure we have an up-to-date local port in case it restarted
|
||||
|
||||
if ((domainSockAddr.getAddress() == QHostAddress::LocalHost || hostname == "localhost")
|
||||
&& _domainPortAutoDiscovery == false) {
|
||||
&& _domainPortAutoDiscovery) {
|
||||
|
||||
quint16 domainPort = DEFAULT_DOMAIN_SERVER_PORT;
|
||||
getLocalServerPortFromSharedMemory(DOMAIN_SERVER_LOCAL_PORT_SMEM_KEY, domainPort);
|
||||
|
|
|
@ -71,7 +71,7 @@ public:
|
|||
void setAssignmentServerSocket(const SockAddr& serverSocket) { _assignmentServerSocket = serverSocket; }
|
||||
void sendAssignment(Assignment& assignment);
|
||||
|
||||
void disableDomainPortAutoDiscovery(bool disabled = false) { _domainPortAutoDiscovery = disabled; };
|
||||
void disableDomainPortAutoDiscovery(bool disabled = false) { _domainPortAutoDiscovery = !disabled; };
|
||||
|
||||
void setIsShuttingDown(bool isShuttingDown) { _isShuttingDown = isShuttingDown; }
|
||||
|
||||
|
@ -183,7 +183,7 @@ private:
|
|||
bool _requestsDomainListData { false };
|
||||
|
||||
bool _sendDomainServerCheckInEnabled { true };
|
||||
bool _domainPortAutoDiscovery { false };
|
||||
bool _domainPortAutoDiscovery { true };
|
||||
|
||||
mutable QReadWriteLock _ignoredSetLock;
|
||||
tbb::concurrent_unordered_set<QUuid, UUIDHasher> _ignoredNodeIDs;
|
||||
|
|
Loading…
Reference in a new issue