From 4030f4a9cde9aa4dd64b0c7aeb0c3381f837a63b Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Wed, 16 Aug 2023 19:00:53 +0700 Subject: [PATCH] Don't unwrap in production --- src/rtsp/states/streaming.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/rtsp/states/streaming.rs b/src/rtsp/states/streaming.rs index 3308d5b..1f6092d 100644 --- a/src/rtsp/states/streaming.rs +++ b/src/rtsp/states/streaming.rs @@ -82,9 +82,12 @@ impl Camera { let data = timeout(Duration::from_secs(15), stream_data.get_data()) .await .with_context(|| "Timed out waiting for new Media Frame") - .unwrap() - .unwrap(); //??; - // debug!("Straming: Got"); + // Live + ??; + // Debug + // .unwrap() + // .unwrap(); + // debug!("Straming: Got"); match &data { Ok(BcMedia::InfoV1(_)) => trace!("{}: - InfoV1", &tag_thread), Ok(BcMedia::InfoV2(_)) => trace!("{}: - InfoV2", &tag_thread),