[wpinet] Fix resolver thread on newer versions of macOS (#7372)

Implicit capture of this is deprecated.
This commit is contained in:
Thad House
2024-11-08 20:23:17 -08:00
committed by GitHub
parent c58be2580d
commit edc3963955

View File

@@ -35,7 +35,7 @@ void ResolverThread::AddServiceRef(DNSServiceRef serviceRef,
thread.join();
}
running = true;
thread = std::thread([=] { ThreadMain(); });
thread = std::thread([this] { ThreadMain(); });
}
}