From 7a5fbafe960d54af88b113afd6c78d2a29420cf9 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sun, 26 Jul 2020 23:33:39 +0800 Subject: [PATCH] quic: fix build for macOS PR-URL: https://github.com/nodejs/node/pull/34336 Reviewed-By: James M Snell --- src/quic/node_quic_stream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quic/node_quic_stream.cc b/src/quic/node_quic_stream.cc index 57b797528a03cb..d63e66988ac2ac 100644 --- a/src/quic/node_quic_stream.cc +++ b/src/quic/node_quic_stream.cc @@ -160,11 +160,11 @@ int QuicStream::DoShutdown(ShutdownWrap* req_wrap) { CHECK_NULL(shutdown_done_); CHECK_NOT_NULL(req_wrap); - shutdown_done_ = std::move([=](int status) { + shutdown_done_ = [=](int status) { CHECK_NOT_NULL(req_wrap); shutdown_done_ = nullptr; req_wrap->Done(status); - }); + }; QuicSession::SendSessionScope send_scope(session());