Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Fix another thinko in the connection check
  • Loading branch information
perexg committed Jun 5, 2015
1 parent f101b85 commit 4d72204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_rec.c
Expand Up @@ -98,7 +98,7 @@ dvr_rec_subscribe(dvr_entry_t *de)
net_count = aa->aa_conn_limit ? tcp_connection_count(aa) : 0;
/* the rule is: allow if one condition is OK */
c1 = aa->aa_conn_limit ? rec_count + net_count >= aa->aa_conn_limit : -1;
c2 = aa->aa_conn_limit_dvr ? rec_count >= aa->aa_conn_limit : -1;
c2 = aa->aa_conn_limit_dvr ? rec_count >= aa->aa_conn_limit_dvr : -1;
if (c1 && c2) {
tvherror("dvr", "multiple connections are not allowed for user '%s' from '%s' "
"(limit %u, dvr limit %u, active DVR %u, streaming %u)",
Expand Down

0 comments on commit 4d72204

Please sign in to comment.