summaryrefslogtreecommitdiff
path: root/src/connection_wrap.cc
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2017-11-22 18:41:00 +0100
committerAndreas Madsen <amwebdk@gmail.com>2017-12-19 18:04:52 +0100
commit3b8da4cbe8a7f36fcd8892c6676a55246ba8c3be (patch)
tree1afc84002d1716f4acd28126df214127e0262c3c /src/connection_wrap.cc
parent0784b0440c05464f79b857f7d8698fcc953d3fb3 (diff)
downloadnode-new-3b8da4cbe8a7f36fcd8892c6676a55246ba8c3be.tar.gz
async_hooks: use scope for defaultTriggerAsyncId
Previously the getter would mutate the kDefaultTriggerAsncId value. This refactor changes the setter to bind the current kDefaultTriggerAsncId to a scope, such that the getter doesn't have to mutate its own value. PR-URL: https://github.com/nodejs/node/pull/17273 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/connection_wrap.cc')
-rw-r--r--src/connection_wrap.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/connection_wrap.cc b/src/connection_wrap.cc
index b7c1949e11..8de77f361d 100644
--- a/src/connection_wrap.cc
+++ b/src/connection_wrap.cc
@@ -49,7 +49,6 @@ void ConnectionWrap<WrapType, UVType>::OnConnection(uv_stream_t* handle,
};
if (status == 0) {
- env->set_default_trigger_async_id(wrap_data->get_async_id());
// Instantiate the client javascript object and handle.
Local<Object> client_obj = WrapType::Instantiate(env,
wrap_data,