mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2025-02-23 07:19:59 +08:00
cancel -> join
This commit is contained in:
parent
0cec518f1d
commit
12a32da61e
|
@ -511,7 +511,7 @@ pub async fn post_py() -> anyhow::Result<()> {
|
||||||
|
|
||||||
async fn stop_tasks() {
|
async fn stop_tasks() {
|
||||||
let waiter = tokio::spawn(async {
|
let waiter = tokio::spawn(async {
|
||||||
call::PY_TASKS.lock().await.cancel_all();
|
call::PY_TASKS.lock().await.join_all().await;
|
||||||
});
|
});
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
_ = waiter => {
|
_ = waiter => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user