mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
do not capture things implicitely in lambdas
This commit is contained in:
@ -141,7 +141,7 @@ class ServerPingTask : public Task {
|
|||||||
qDebug() << "Querying status of " << m_server.m_address;
|
qDebug() << "Querying status of " << m_server.m_address;
|
||||||
auto [domain, port] = m_server.splitAddress();
|
auto [domain, port] = m_server.splitAddress();
|
||||||
McResolver *resolver = new McResolver(nullptr, domain, port);
|
McResolver *resolver = new McResolver(nullptr, domain, port);
|
||||||
QObject::connect(resolver, &McResolver::succeed, [=](QString ip, int port) {
|
QObject::connect(resolver, &McResolver::succeed, [this, resolver, domain](QString ip, int port) {
|
||||||
resolver->deleteLater();
|
resolver->deleteLater();
|
||||||
qDebug() << "Resolved Addresse for" << domain << ": " << ip << ":" << port;
|
qDebug() << "Resolved Addresse for" << domain << ": " << ip << ":" << port;
|
||||||
McClient client(nullptr, domain, ip, port);
|
McClient client(nullptr, domain, ip, port);
|
||||||
|
Reference in New Issue
Block a user