Drop the temp. directory last

This commit is contained in:
Thorsten Sommer 2026-01-14 09:04:32 +01:00
parent a4e0ee2960
commit f57973148f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -120,7 +120,6 @@ pub fn start_qdrant_server() {
/// Stops the Qdrant server process. /// Stops the Qdrant server process.
pub fn stop_qdrant_server() { pub fn stop_qdrant_server() {
drop_tmpdir();
if let Some(server_process) = QDRANT_SERVER.lock().unwrap().take() { if let Some(server_process) = QDRANT_SERVER.lock().unwrap().take() {
let server_kill_result = server_process.kill(); let server_kill_result = server_process.kill();
match server_kill_result { match server_kill_result {
@ -130,6 +129,8 @@ pub fn stop_qdrant_server() {
} else { } else {
warn!(Source = "Qdrant"; "Qdrant server process was not started or is already stopped."); warn!(Source = "Qdrant"; "Qdrant server process was not started or is already stopped.");
} }
drop_tmpdir();
} }
pub fn create_temp_tls_files(path: PathBuf) -> Result<(PathBuf, PathBuf), Box<dyn std::error::Error>> { pub fn create_temp_tls_files(path: PathBuf) -> Result<(PathBuf, PathBuf), Box<dyn std::error::Error>> {