mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-03 07:45:30 +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();
|
tx.send(()).ok();
|
||||||
}
|
}
|
||||||
Command::Shutdown { tx } => {
|
Command::Shutdown { tx } => {
|
||||||
// drop the connection reference before sending confirmation
|
// drop the connection references before sending confirmation
|
||||||
// and ending the command loop
|
// and ending the command loop
|
||||||
drop(conn);
|
drop(conn);
|
||||||
|
drop(shared);
|
||||||
let _ = tx.send(());
|
let _ = tx.send(());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user