From 4178f56d768046f9bea92a71de0a2219bc0e248c Mon Sep 17 00:00:00 2001 From: Andrew Whitehead Date: Mon, 3 Jan 2022 13:34:42 -0800 Subject: [PATCH] drop worker shared state in shutdown Signed-off-by: Andrew Whitehead --- sqlx-core/src/sqlite/connection/worker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sqlx-core/src/sqlite/connection/worker.rs b/sqlx-core/src/sqlite/connection/worker.rs index 527e363aa5..b737fbf386 100644 --- a/sqlx-core/src/sqlite/connection/worker.rs +++ b/sqlx-core/src/sqlite/connection/worker.rs @@ -215,9 +215,10 @@ impl ConnectionWorker { tx.send(()).ok(); } Command::Shutdown { tx } => { - // drop the connection reference before sending confirmation + // drop the connection references before sending confirmation // and ending the command loop drop(conn); + drop(shared); let _ = tx.send(()); return; }