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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
aaccttrr authored and codebytere committed Feb 17, 2020
1 parent cde4b51 commit 6fdef45
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 6fdef45

Please sign in to comment.