Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Jan 12, 2024
1 parent 8c44da8 commit 34d9450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machinery/src/capture/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ func JpegImage(captureDevice *Capture, communication *models.Communication) imag
var image image.YCbCr
// Try for 3 times in a row.
count := 0
for {
for count < 3 {
if queue != nil && cursor != nil && rtspClient != nil {
pkt, err := cursor.ReadPacket()
if err == nil {
Expand Down

0 comments on commit 34d9450

Please sign in to comment.