Change sense of DomainHandler::checkInPacketTimeout() return value

This commit is contained in:
Simon Walton 2018-07-05 16:39:13 -07:00
parent b63515f42a
commit 33ae04f9ea
2 changed files with 3 additions and 3 deletions

View file

@ -483,8 +483,8 @@ bool DomainHandler::checkInPacketTimeout() {
// so emit our signal that says that
qCDebug(networking) << "Limit of silent domain checkins reached";
emit limitOfSilentDomainCheckInsReached();
return false;
} else {
return true;
} else {
return false;
}
}

View file

@ -306,7 +306,7 @@ void NodeList::sendDomainServerCheckIn() {
qCDebug(networking) << "Waiting for ICE discovered domain-server socket. Will not send domain-server check in.";
handleICEConnectionToDomainServer();
// let the domain handler know we are due to send a checkin packet
} else if (!_domainHandler.getIP().isNull() && _domainHandler.checkInPacketTimeout()) {
} else if (!_domainHandler.getIP().isNull() && !_domainHandler.checkInPacketTimeout()) {
PacketType domainPacketType = !_domainHandler.isConnected()
? PacketType::DomainConnectRequest : PacketType::DomainListRequest;