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 {
1084
1084
}
1085
1085
1086
1086
void CloseHandlesAndMaybeDelete (bool set_closing = false ) {
1087
+ v8::HandleScope scope (env->isolate );
1087
1088
if (set_closing) {
1088
1089
node::Mutex::ScopedLock lock (this ->mutex );
1089
1090
is_closing = true ;
@@ -1101,6 +1102,7 @@ class ThreadSafeFunction : public node::AsyncResource {
1101
1102
ThreadSafeFunction* ts_fn =
1102
1103
node::ContainerOf (&ThreadSafeFunction::async,
1103
1104
reinterpret_cast <uv_async_t *>(handle));
1105
+ v8::HandleScope scope (ts_fn->env ->isolate );
1104
1106
ts_fn->env ->node_env ()->CloseHandle (
1105
1107
reinterpret_cast <uv_handle_t *>(&ts_fn->idle ),
1106
1108
[](uv_handle_t * handle) -> void {
You can’t perform that action at this time.
0 commit comments