delete the lookup timeout timer once fired

This commit is contained in:
Stephen Birarda 2016-01-21 11:18:53 -08:00
parent f12e0b5fd0
commit 4cfe3941f4

View file

@ -827,6 +827,9 @@ void LimitedNodeList::startSTUNPublicSocketUpdate() {
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);
} else {
_initialSTUNTimer->start();