Skip to content

Commit

Permalink
worker: remove redundant closing of child port
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
aaccttrr authored and Trott committed Jan 31, 2020
1 parent d4c81be commit 9225939
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/node_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9225939

Please sign in to comment.