Missing cleanup
This commit is contained in:
parent
c00676feba
commit
b509e6057f
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ impl SendQueue {
|
|||
for (_, prioq) in self.items.iter_mut() {
|
||||
prioq.remove(id);
|
||||
}
|
||||
self.items.retain(|(_prio, q)| !q.is_empty());
|
||||
}
|
||||
fn is_empty(&self) -> bool {
|
||||
self.items.iter().all(|(_k, v)| v.is_empty())
|
||||
|
|
Loading…
Reference in a new issue