worker: remove redundant closing of child port

PR-URL: https://github.com/nodejs/node/pull/31555
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
aaccttrr authored and Rich Trott committed 2020-01-30 16:19:04 -08:00
1 parent d4c81be4a0
commit 9225939528
1 file changed
-2
-2
View File
@@ -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;