impl drop for storage

This commit is contained in:
manapointer 2022-12-25 18:10:42 -08:00
parent 2fc0a3c08f
commit 57b848da3e

View file

@ -171,13 +171,13 @@ where
}
}
impl<DB> Drop for Shared<DB>
impl<DB> Drop for Storage<DB>
where
DB: HasJars,
{
fn drop(&mut self) {
drop(self.jars.take());
self.cvar.notify_all();
drop(self.shared.jars.take());
self.shared.cvar.notify_all();
}
}