fifo: clear 40hz latch listener at shutdown
This commit is contained in:
parent
e28b1b5646
commit
b3b48608d1
2 changed files with 5 additions and 0 deletions
|
|
@ -1068,6 +1068,7 @@ impl State {
|
|||
self.position_hint_requests.clear();
|
||||
self.head_managers.clear();
|
||||
self.head_managers_async.clear();
|
||||
self.const_40hz_latch.clear();
|
||||
}
|
||||
|
||||
pub fn remove_toplevel_id(&self, id: ToplevelIdentifier) {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@ impl<T: ?Sized> Default for EventSource<T> {
|
|||
}
|
||||
|
||||
impl<T: ?Sized> EventSource<T> {
|
||||
pub fn clear(&self) {
|
||||
self.on_attach.take();
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> EventSourceIter<T> {
|
||||
EventSourceIter {
|
||||
iter: self.listeners.iter(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue