Missing cleanup
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed

This commit is contained in:
Alex 2022-09-13 12:28:01 +02:00
parent c00676feba
commit b509e6057f
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -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())