Skip to content

Commit

Permalink
Remove env cleanup after closing
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Dec 24, 2021
1 parent 0a1a0fc commit 7030fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7030fae

Please sign in to comment.