| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6b7cccc commit fe43282
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1097,6 +1097,7 @@ class ThreadSafeFunction : public node::AsyncResource { | |||
| 1097 | 1097 | } | |
| 1098 | 1098 | ||
| 1099 | 1099 | void CloseHandlesAndMaybeDelete(bool set_closing = false) { | |
| 1100 | + v8::HandleScope scope(env->isolate); | ||
| 1100 | 1101 | if (set_closing) { | |
| 1101 | 1102 | node::Mutex::ScopedLock lock(this->mutex); | |
| 1102 | 1103 | is_closing = true; | |
@@ -1114,6 +1115,7 @@ class ThreadSafeFunction : public node::AsyncResource { | |||
| 1114 | 1115 | ThreadSafeFunction* ts_fn = | |
| 1115 | 1116 | node::ContainerOf(&ThreadSafeFunction::async, | |
| 1116 | 1117 | reinterpret_cast<uv_async_t*>(handle)); | |
| 1118 | + v8::HandleScope scope(ts_fn->env->isolate); | ||
| 1117 | 1119 | uv_close( | |
| 1118 | 1120 | reinterpret_cast<uv_handle_t*>(&ts_fn->idle), | |
| 1119 | 1121 | [] (uv_handle_t* handle) -> void { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments