Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mosure committed Mar 8, 2024
1 parent cedc214 commit 0c1b867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl RtspStream {
loop {
let frame = self.capture_frame().await?;

if let Some(command) = receiver.try_recv().ok() {
if let Ok(command) = receiver.try_recv() {
match command {
RecordingCommand::StartRecording(file) => {
if let Some(writer) = self.writer.take() {
Expand Down

0 comments on commit 0c1b867

Please sign in to comment.