mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
abort tasks for non-async pool shudown
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
7b8320e0eb
commit
4d46df2af5
2 files changed
+12
-5
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user