From 7030fae491a44eb4686cc15f2055d0f859c3c047 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 23 Dec 2021 21:48:40 -0700 Subject: [PATCH] Remove env cleanup after closing --- src/env.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.cpp b/src/env.cpp index 71335e004b..9289e71fce 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -372,8 +372,8 @@ NAN_METHOD(EnvWrap::resize) { void EnvWrap::closeEnv() { if (!env) return; + node::RemoveEnvironmentCleanupHook(Isolate::GetCurrent(), cleanup, this); cleanupStrayTxns(); - pthread_mutex_lock(envsLock); for (auto envPath = envs.begin(); envPath != envs.end(); ) { if (envPath->env == env) {