add: timeout logic to code 😭

This commit is contained in:
2026-07-10 13:34:10 +01:00
parent 76c051145f
commit de622816cc
+3
View File
@@ -163,6 +163,9 @@ impl Rtmp {
} }
Err(_) => { Err(_) => {
warn!("RTMP timed out (15 sec no packets) id: {:?}", stream_id); warn!("RTMP timed out (15 sec no packets) id: {:?}", stream_id);
if let Some(id) = current_stream_key_id {
cleanup(id).await;
}
return; return;
} }
}; };