0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

mingw: change arguments order in lambda

Having capture without initializer after nested struct
is broken in GCC 7.x and is fixed starting from GCC 8.1
(see https://stackoverflow.com/questions/60110629/).

Signed-off-by: Lev Stipakov <lev@openvpn.net>
This commit is contained in:
Lev Stipakov 2020-02-10 16:17:15 +02:00
parent 9393206d74
commit e844bd466b
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -857,7 +857,7 @@ namespace openvpn {
// We must do DHCP release/renew in a background thread
// so the foreground can forward the DHCP negotiation packets
// over the tunnel.
l2_thread.reset(new std::thread([this, logwrap=Log::Context::Wrapper(), tap]() {
l2_thread.reset(new std::thread([this, tap, logwrap=Log::Context::Wrapper()]() {
Log::Context logctx(logwrap);
::Sleep(250);
const Util::InterfaceInfoList ii;