mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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:
1 parent
d4c81be4a0
commit
9225939528
1 file changed
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user