Skip to content

Commit

Permalink
Fix lambda pointer capture in BackendConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
blammit committed Feb 18, 2025
1 parent f294665 commit 6905bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backendconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void BackendConnection::initMqttConnection(const QString &address)
producer->continueConnect();
}
});
connect(mqttProducer, &VeQItemMqttProducer::connectionStateChanged, this, [&mqttProducer, this] {
connect(mqttProducer, &VeQItemMqttProducer::connectionStateChanged, this, [mqttProducer, this] {
setState(mqttProducer->connectionState());
});
connect(mqttProducer, &VeQItemMqttProducer::errorChanged,
Expand Down

0 comments on commit 6905bd3

Please sign in to comment.