This commit is contained in:
2026-08-27 02:22:56 +02:00
parent 8887c96f05
commit 02a444d6ed
2 changed files with 31 additions and 14 deletions
+3 -3
View File
@@ -105,7 +105,7 @@ impl Server {
let now = Instant::now();
if now.duration_since(voice.last_speaking_sent).as_millis() >= 1000 {
if now.duration_since(voice.last_speaking_sent).as_millis() >= 600 {
for conn in user.connections.lock().await.values() {
let _ = send_socket(
&mut *conn.lock().await,
@@ -115,9 +115,9 @@ impl Server {
)
.await;
}
}
voice.last_speaking_sent = now;
voice.last_speaking_sent = now;
}
let _ = self.udp_send_to(&voice.addr, payload).await;
}