mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
Fix futures queue not cleaning up properly at end of scheduler run
This commit is contained in:
parent
752f5496cf
commit
1915441ee6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue