cancel -> join

This commit is contained in:
shenjack 2025-02-11 23:07:33 +08:00
parent 0cec518f1d
commit 12a32da61e
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -511,7 +511,7 @@ pub async fn post_py() -> anyhow::Result<()> {
async fn stop_tasks() {
let waiter = tokio::spawn(async {
call::PY_TASKS.lock().await.cancel_all();
call::PY_TASKS.lock().await.join_all().await;
});
tokio::select! {
_ = waiter => {