From de622816cc0a9b264f214e981b482567deedb02a Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Fri, 10 Jul 2026 13:34:10 +0100 Subject: [PATCH] add: timeout logic to code :sob: --- crates/server/src/rtmp.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/server/src/rtmp.rs b/crates/server/src/rtmp.rs index c15dc48..3247580 100644 --- a/crates/server/src/rtmp.rs +++ b/crates/server/src/rtmp.rs @@ -163,6 +163,9 @@ impl Rtmp { } Err(_) => { warn!("RTMP timed out (15 sec no packets) id: {:?}", stream_id); + if let Some(id) = current_stream_key_id { + cleanup(id).await; + } return; } };