We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff8795 commit 60941d6Copy full SHA for 60941d6
1 file changed
src/env.cc
@@ -634,7 +634,10 @@ void Environment::RunCleanup() {
634
initial_base_object_count_ = 0;
635
CleanupHandles();
636
637
- while (!cleanup_hooks_.empty()) {
+ while (!cleanup_hooks_.empty() ||
638
+ native_immediates_.size() > 0 ||
639
+ native_immediates_threadsafe_.size() > 0 ||
640
+ native_immediates_interrupts_.size() > 0) {
641
// Copy into a vector, since we can't sort an unordered_set in-place.
642
std::vector<CleanupHookCallback> callbacks(
643
cleanup_hooks_.begin(), cleanup_hooks_.end());
0 commit comments