mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
drop worker shared state in shutdown (#1608)
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
This commit is contained in:
parent
bcb2d8e604
commit
dec0ed1a4d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user