Skip to content

Commit

Permalink
[wpinet] Fix resolver thread on newer versions of macOS (#7372)
Browse files Browse the repository at this point in the history
Implicit capture of this is deprecated.
  • Loading branch information
ThadHouse authored Nov 9, 2024
1 parent c58be25 commit edc3963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpinet/src/main/native/macOS/ResolverThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void ResolverThread::AddServiceRef(DNSServiceRef serviceRef,
thread.join();
}
running = true;
thread = std::thread([=] { ThreadMain(); });
thread = std::thread([this] { ThreadMain(); });
}
}

Expand Down

0 comments on commit edc3963

Please sign in to comment.