Changeset 5045 for trunk/module-cccam.c
- Timestamp:
- 04/18/11 18:20:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r5043 r5045 1455 1455 struct cc_data *cc = cl->cc; 1456 1456 if (!cc) return; 1457 1458 pthread_mutex_trylock(&cc->cards_busy);1459 if (!cl->cc) return;1460 1457 cl->cc=NULL; 1458 1461 1459 cc_free_cardlist(cc->cards, TRUE); 1462 1460 ll_destroy_data(cc->pending_emms); … … 1465 1463 ll_destroy_data(cc->extended_ecm_idx); 1466 1464 1467 pthread_mutex_unlock(&cc->lockcmd); 1465 if (!pthread_mutex_trylock(&cc->lockcmd)) 1466 pthread_mutex_unlock(&cc->lockcmd); 1468 1467 pthread_mutex_destroy(&cc->lockcmd); 1469 1468 1470 pthread_mutex_unlock(&cc->ecm_busy); 1469 if (!pthread_mutex_trylock(&cc->ecm_busy)) 1470 pthread_mutex_unlock(&cc->ecm_busy); 1471 1471 pthread_mutex_destroy(&cc->ecm_busy); 1472 1472 1473 pthread_mutex_unlock(&cc->cards_busy); 1473 if (!pthread_mutex_trylock(&cc->cards_busy)) 1474 pthread_mutex_unlock(&cc->cards_busy); 1474 1475 pthread_mutex_destroy(&cc->cards_busy); 1476 1475 1477 add_garbage(cc->prefix); 1476 1478 add_garbage(cc);
Note:
See TracChangeset
for help on using the changeset viewer.