Fix futures queue not cleaning up properly at end of scheduler run

This commit is contained in:
Filip Tibell 2025-04-28 14:22:47 +02:00
parent 752f5496cf
commit 1915441ee6
No known key found for this signature in database

View file

@ -2,7 +2,7 @@
use std::{ use std::{
cell::Cell, cell::Cell,
rc::{Rc, Weak as WeakRc}, rc::Rc,
sync::{Arc, Weak as WeakArc}, sync::{Arc, Weak as WeakArc},
thread::panicking, thread::panicking,
}; };
@ -445,7 +445,7 @@ impl Scheduler {
.remove_app_data::<WeakArc<Executor>>() .remove_app_data::<WeakArc<Executor>>()
.expect(ERR_METADATA_REMOVED); .expect(ERR_METADATA_REMOVED);
self.lua self.lua
.remove_app_data::<WeakRc<FuturesQueue>>() .remove_app_data::<FuturesQueue>()
.expect(ERR_METADATA_REMOVED); .expect(ERR_METADATA_REMOVED);
} }
} }