abort tasks for non-async pool shudown

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2024-12-18 14:16:23 -05:00
1 parent 7b8320e0eb
commit 4d46df2af5
2 files changed
+12 -5

No files matched your search

+2 -1
View File
@@ -347,7 +347,8 @@ impl Drop for Engine {
fn drop(&mut self) {
const BLOCKING: bool = true;
debug_assert!(!self.pool.close(), "request pool was not closed");
debug!("Closing frontend pool");
self.pool.close();
debug!("Waiting for background tasks to finish...");
self.db.cancel_all_background_work(BLOCKING);