update:优化超时资源优化

This commit is contained in:
hrz
2025-06-27 23:38:05 +08:00
parent f8ccc7a92f
commit 6f6c39da23
4 changed files with 30 additions and 26 deletions
@@ -93,7 +93,7 @@ async def sendAudio(conn, audios, pre_buffer=True):
break
# 重置没有声音的状态
conn.client_no_voice_last_time = 0.0
conn.last_activity_time = time.time() * 1000
# 计算预期发送时间
expected_time = start_time + (play_position / 1000)