diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-03-21 17:15:42 +0100 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-03-22 08:20:58 +0000 |
commit | de8abc2dd3ffae6feeb05d4599c0c5a0beb7f17a (patch) | |
tree | 3f77bd15bc786a540da96e5e89fe2d30a561cc0e /src | |
parent | 2e23643ce1b01470b3408db67f1b063c9bcfac18 (diff) |
Do not capture q-pointer by reference
This fixes a crash introduced by one of the recent commits.
Change-Id: I4742a77585d764a1da8e07de44869b974009f626
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/coap/qcoapconnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coap/qcoapconnection.cpp b/src/coap/qcoapconnection.cpp index 839336d..0263618 100644 --- a/src/coap/qcoapconnection.cpp +++ b/src/coap/qcoapconnection.cpp @@ -162,7 +162,7 @@ QCoapConnectionPrivate::sendRequest(const QByteArray &request, const QString &ho if (state == QCoapConnection::ConnectionState::Unconnected) { q->connect(q, &QCoapConnection::bound, q, - [&]() { + [this, q]() { state = QCoapConnection::ConnectionState::Bound; q->startToSendRequest(); }); |