Changeset 3300
- Timestamp:
- 09/29/10 10:06:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r3294 r3300 1576 1576 cc_free_card(card); 1577 1577 card = next_card; 1578 cc->cards_modified = 1;1578 cc->cards_modified++; 1579 1579 //break; 1580 1580 } else { … … 1715 1715 prov = llist_itr_next(&itr); 1716 1716 } 1717 cc->cards_modified = 1;1717 cc->cards_modified++; 1718 1718 1719 1719 pthread_mutex_unlock(&cc->cards_busy); … … 2663 2663 if (clr->cc) { 2664 2664 struct cc_data *ccr = clr->cc; 2665 if (ccr->cards_modified) { 2666 ccr->cards_modified = 0; 2667 modified = 1; 2668 } 2665 modified += ccr->cards_modified; 2669 2666 } 2670 2667 } … … 2900 2897 timeout.millitm = timeout.millitm % 1000; 2901 2898 2902 int force_card_updates = cfg->cc_update_interval && comp_timeb(2899 int needs_card_updates = cfg->cc_update_interval && comp_timeb( 2903 2900 &cur_time, &timeout) > 0; 2904 ulong new_hexserial_crc = get_reader_hexserial_crc(); 2905 if (force_card_updates || new_hexserial_crc != hexserial_crc || cc_cards_modified()) { 2906 cs_debug_mask(D_TRACE, "%s update share list", getprefix()); 2907 cc_srv_report_cards(); 2908 hexserial_crc = new_hexserial_crc; 2901 2902 if (needs_card_updates) { 2909 2903 cc->ecm_time = cur_time; 2904 ulong new_hexserial_crc = get_reader_hexserial_crc(); 2905 int cards_modified = cc_cards_modified(); 2906 if (new_hexserial_crc != hexserial_crc || cards_modified != cc->cards_modified) { 2907 cs_debug_mask(D_TRACE, "%s update share list", getprefix()); 2908 2909 hexserial_crc = new_hexserial_crc; 2910 cc->cards_modified = cards_modified; 2911 2912 cc_srv_report_cards(); 2913 } 2910 2914 } 2911 2915 }
Note:
See TracChangeset
for help on using the changeset viewer.