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: #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 codebytere committed Mar 30, 2020
1 parent af61c5d commit 5500521
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 @@ -263,8 +263,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 5500521

Please sign in to comment.