Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-03-29 16:07:00 +0300
committerAnna Henningsen <anna@addaleax.net>2020-04-02 18:23:19 +0300
commit037ac99ed5aa763b7a3567da2cc81f9d7b97bdf9 (patch)
tree9a988bff1ef90d92a288b170699712d696e22d53 /src/node.cc
parentd812f16234c80690ee9bdc34f496ae261a7b8530 (diff)
embedding: make Stop() stop Workers
This makes sense given that terminating execution of the parent thread this way likely also is supposed to stop all running Worker threads spawned by it. PR-URL: https://github.com/nodejs/node/pull/32531 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index 9e0e2464a02..302b277493c 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1059,7 +1059,7 @@ int Start(int argc, char** argv) {
}
int Stop(Environment* env) {
- env->ExitEnv();
+ env->Stop();
return 0;
}