From 9225939528590f652e6ee1ccf73e709b029d4ca5 Mon Sep 17 00:00:00 2001 From: aaccttrr Date: Tue, 28 Jan 2020 15:46:36 +0000 Subject: [PATCH] worker: remove redundant closing of child port PR-URL: https://github.com/nodejs/node/pull/31555 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: David Carlier Reviewed-By: Rich Trott --- src/node_worker.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node_worker.cc b/src/node_worker.cc index 9acec1a8cbca8d..b350219d813832 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -261,8 +261,6 @@ void Worker::Run() { { Context::Scope context_scope(env_->context()); - if (child_port != nullptr) - child_port->Close(); { Mutex::ScopedLock lock(mutex_); stopped_ = true;