Skip to content

Commit ac10b92

Browse files
committed
fix ota crashing
1 parent 8e6c891 commit ac10b92

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • apps/desktop/src-tauri/src

apps/desktop/src-tauri/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,16 +325,11 @@ pub async fn main() {
325325
}
326326
}
327327

328-
{
329-
let db = app.state::<hypr_db_core2::ManagedDb>();
330-
let pool = db.pool().clone();
331-
tauri::async_runtime::block_on(pool.close());
332-
}
333-
334328
if let Some(ref ctx) = root_supervisor_ctx_for_run {
335329
ctx.mark_exiting();
336330
ctx.stop();
337331
}
332+
338333
hypr_host::kill_processes_by_matcher(hypr_host::ProcessMatcher::Sidecar);
339334
}
340335
_ => {}

0 commit comments

Comments
 (0)