mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
do not capture things implicitely in lambdas
This commit is contained in:
parent
1fb0fe0171
commit
5cfb5a6f0d
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ class ServerPingTask : public Task {
|
|||
qDebug() << "Querying status of " << m_server.m_address;
|
||||
auto [domain, port] = m_server.splitAddress();
|
||||
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();
|
||||
qDebug() << "Resolved Addresse for" << domain << ": " << ip << ":" << port;
|
||||
McClient client(nullptr, domain, ip, port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue