Skip to content

Commit

Permalink
don't exit on error count, wait.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltn-chriskennedy committed Aug 24, 2024
1 parent f191ef4 commit 5369ffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1897,13 +1897,13 @@ async fn rsprobe(running: Arc<AtomicBool>) {
.try_send(Arc::try_unwrap(video_packet).unwrap_or_default())
{
// If the channel is full, drop the packet
eprintln!("Video packet channel is full. Dropping packet.");
eprintln!("Video packet channel is full. Dropping packet. {} errors so far.", video_packet_errors);
video_packet_errors += 1;
if video_packet_errors > 32 {
/*if video_packet_errors > 32 {
eprintln!("Probe: Video packet channel has {} errors, exiting.", video_packet_errors);
running.store(false, Ordering::SeqCst);
break;
}
}*/
} else {
video_packet_errors = 0;
}
Expand Down

0 comments on commit 5369ffa

Please sign in to comment.