mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-03 07:30:44 +02:00
delete the lookup timeout timer once fired
This commit is contained in:
parent
f12e0b5fd0
commit
4cfe3941f4
1 changed files with 3 additions and 0 deletions
|
@ -827,6 +827,9 @@ void LimitedNodeList::startSTUNPublicSocketUpdate() {
|
||||||
|
|
||||||
connect(lookupTimeoutTimer, &QTimer::timeout, this, &LimitedNodeList::possiblyTimeoutSTUNAddressLookup);
|
connect(lookupTimeoutTimer, &QTimer::timeout, this, &LimitedNodeList::possiblyTimeoutSTUNAddressLookup);
|
||||||
|
|
||||||
|
// delete the lookup timeout timer once it has fired
|
||||||
|
connect(lookupTimeoutTimer, &QTimer::timeout, lookupTimeoutTimer, &QTimer::deleteLater);
|
||||||
|
|
||||||
lookupTimeoutTimer->start(STUN_DNS_LOOKUP_TIMEOUT_MSECS);
|
lookupTimeoutTimer->start(STUN_DNS_LOOKUP_TIMEOUT_MSECS);
|
||||||
} else {
|
} else {
|
||||||
_initialSTUNTimer->start();
|
_initialSTUNTimer->start();
|
||||||
|
|
Loading…
Reference in a new issue