Skip to content

Commit

Permalink
fix: stream retry
Browse files Browse the repository at this point in the history
  • Loading branch information
mosure committed Mar 8, 2024
1 parent 01708eb commit d6cd416
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ impl RtspStreamManager {

self.handle.spawn(async move {
let mut stream = stream;
let _ = stream.run().await;
loop {
// TODO: print connection errors
let _ = stream.run().await;
}
});
}
}
Expand Down

0 comments on commit d6cd416

Please sign in to comment.