mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +02:00
fix null STUN server socket check in LNL
This commit is contained in:
parent
a089c43fdc
commit
a6ba8dd8e5
1 changed files with 2 additions and 2 deletions
|
@ -671,7 +671,7 @@ const int NUM_BYTES_STUN_HEADER = 20;
|
||||||
|
|
||||||
void LimitedNodeList::sendSTUNRequest() {
|
void LimitedNodeList::sendSTUNRequest() {
|
||||||
|
|
||||||
if (!_stunSockAddr.isNull()) {
|
if (!_stunSockAddr.getAddress().isNull()) {
|
||||||
const int NUM_INITIAL_STUN_REQUESTS_BEFORE_FAIL = 10;
|
const int NUM_INITIAL_STUN_REQUESTS_BEFORE_FAIL = 10;
|
||||||
|
|
||||||
if (!_hasCompletedInitialSTUN) {
|
if (!_hasCompletedInitialSTUN) {
|
||||||
|
@ -840,7 +840,7 @@ void LimitedNodeList::startSTUNPublicSocketUpdate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LimitedNodeList::possiblyTimeoutSTUNAddressLookup() {
|
void LimitedNodeList::possiblyTimeoutSTUNAddressLookup() {
|
||||||
if (_stunSockAddr.isNull()) {
|
if (_stunSockAddr.getAddress().isNull()) {
|
||||||
// our stun address is still NULL, but we've been waiting for long enough - time to force a fail
|
// our stun address is still NULL, but we've been waiting for long enough - time to force a fail
|
||||||
stopInitialSTUNUpdate(false);
|
stopInitialSTUNUpdate(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue