Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only delete once count is greater than max_count.
  • Loading branch information
Scott Harris authored and perexg committed Dec 26, 2015
1 parent dc4e037 commit effbf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_autorec.c
Expand Up @@ -120,7 +120,7 @@ dvr_autorec_completed(dvr_entry_t *de, int error_code)
}
if (total == 0)
total = count;
if (count < max_count)
if (count <= max_count)
break;
if (de_prev) {
tvhinfo("dvr", "autorec %s removing recordings %s (allowed count %u total %u)",
Expand Down

0 comments on commit effbf60

Please sign in to comment.