We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d60b6b commit 06e09f7Copy full SHA for 06e09f7
src/node_worker.cc
@@ -150,7 +150,10 @@ class WorkerThreadData {
150
151
isolate->Dispose();
152
153
- // Need to run the loop one more time to close the platform's uv_async_t
+ // Need to run the loop twice more to close the platform's uv_async_t
154
+ // TODO(addaleax): It would be better for the platform itself to provide
155
+ // some kind of notification when it has fully cleaned up.
156
+ uv_run(&loop_, UV_RUN_ONCE);
157
uv_run(&loop_, UV_RUN_ONCE);
158
159
CheckedUvLoopClose(&loop_);
0 commit comments