Skip to content

Commit

Permalink
Fix watchdog for internet radios again #50
Browse files Browse the repository at this point in the history
  • Loading branch information
subogero committed Jun 24, 2016
1 parent e247fd9 commit 0897aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player.c
Expand Up @@ -57,7 +57,7 @@ static void watchdog(int signum)
for (i = 0; i < NUM_PLAYERS; ++i) {
int t_play = player_dt(p + i);
int t_len = player_length(p[i].logfile);
if (t_play == -1 || t_len == 0 || t_play <= t_len)
if (t_play == -1 || t_len <= 0 || t_play <= t_len)
continue;
LOG(0, "watchdog: t_play = %d, t_len = %d\n", t_play, t_len);
char cmd[50] = { 0, };
Expand Down

0 comments on commit 0897aa5

Please sign in to comment.