File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1084,6 +1084,7 @@ class ThreadSafeFunction : public node::AsyncResource {
10841084 }
10851085
10861086 void CloseHandlesAndMaybeDelete (bool set_closing = false ) {
1087+ v8::HandleScope scope (env->isolate );
10871088 if (set_closing) {
10881089 node::Mutex::ScopedLock lock (this ->mutex );
10891090 is_closing = true ;
@@ -1101,6 +1102,7 @@ class ThreadSafeFunction : public node::AsyncResource {
11011102 ThreadSafeFunction* ts_fn =
11021103 node::ContainerOf (&ThreadSafeFunction::async,
11031104 reinterpret_cast <uv_async_t *>(handle));
1105+ v8::HandleScope scope (ts_fn->env ->isolate );
11041106 ts_fn->env ->node_env ()->CloseHandle (
11051107 reinterpret_cast <uv_handle_t *>(&ts_fn->idle ),
11061108 [](uv_handle_t * handle) -> void {
You can’t perform that action at this time.
0 commit comments