mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Remove async cleanup hooks from the list after they're called, not before
This commit is contained in:
@@ -84,10 +84,10 @@ public:
|
||||
|
||||
while (!m_asyncCleanupHooks.empty()) {
|
||||
auto [function, data, handle] = m_asyncCleanupHooks.back();
|
||||
m_asyncCleanupHooks.pop_back();
|
||||
ASSERT(function != nullptr);
|
||||
function(handle, data);
|
||||
delete handle;
|
||||
m_asyncCleanupHooks.pop_back();
|
||||
}
|
||||
|
||||
for (const BoundFinalizer& boundFinalizer : m_finalizers) {
|
||||
|
||||
Reference in New Issue
Block a user