Commit 384cc267 by qlintonger xeno

自动挂断目前没问题了+1

parent e210a1a7
...@@ -416,7 +416,10 @@ pub async fn handle_agora_call( ...@@ -416,7 +416,10 @@ pub async fn handle_agora_call(
// 最后广播用户更新 // 最后广播用户更新
notify_all_clients_to_update_online_users().await; notify_all_clients_to_update_online_users().await;
}); });
println!("step - 7 开启定时挂断线程refuse {}", refuse_thread_users.len()); println!(
"step - 7 开启定时挂断线程refuse {}",
refuse_thread_users.len()
);
// 开启定时器线程任务,如果所有用户20s内没有接听,则挂断,发送所有CmdRefuse数据并重置 // 开启定时器线程任务,如果所有用户20s内没有接听,则挂断,发送所有CmdRefuse数据并重置
for user_id in refuse_thread_users { for user_id in refuse_thread_users {
let current_user_status_data = { ONLINE_USERS.get(&user_id) }; let current_user_status_data = { ONLINE_USERS.get(&user_id) };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment