aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-02-15 17:42:03 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2019-02-21 16:50:57 +0000
commit98b4ac3db7e86feb69e1cc8e80cc00d89c87e890 (patch)
tree7c18abe902dfc99ae6b7e03a083b5cc7d0ae7fb3 /src
parent7a60005561116b420ca84ac6cc7a11e69d614ae6 (diff)
Code cleanup: avoid calling lambdas with deleted contexts
Change-Id: I65e59f609decac4f7c26eb4980624a58c4d2bcb3 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/coap/qcoapinternalrequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coap/qcoapinternalrequest.cpp b/src/coap/qcoapinternalrequest.cpp
index a28c2d4..6f0735e 100644
--- a/src/coap/qcoapinternalrequest.cpp
+++ b/src/coap/qcoapinternalrequest.cpp
@@ -60,10 +60,10 @@ QCoapInternalRequest::QCoapInternalRequest(QObject *parent) :
{
Q_D(QCoapInternalRequest);
d->timeoutTimer = new QTimer(this);
- connect(d->timeoutTimer, &QTimer::timeout, [this]() { emit timeout(this); });
+ connect(d->timeoutTimer, &QTimer::timeout, this, [this]() { emit timeout(this); });
d->maxTransmitWaitTimer = new QTimer(this);
- connect(d->maxTransmitWaitTimer, &QTimer::timeout,
+ connect(d->maxTransmitWaitTimer, &QTimer::timeout, this,
[this]() { emit maxTransmissionSpanReached(this); });
d->multicastExpireTimer = new QTimer(this);