Changeset 610 for pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
- Timestamp:
- Jul 18, 2006 12:10:53 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r600 r610 649 649 static pj_status_t mod_tsx_layer_unload(void) 650 650 { 651 /* Only self destroy when there's no transaction in the table. 652 * Transaction may refuse to destroy when it has pending 653 * transmission. If we destroy the module now, application will 654 * crash when the pending transaction finally got error response 655 * from transport and when it tries to unregister itself. 656 */ 657 if (pj_hash_count(mod_tsx_layer.htable) != 0) 658 return PJ_EBUSY; 659 651 660 /* Destroy mutex. */ 652 661 pj_mutex_destroy(mod_tsx_layer.mutex); … … 928 937 if (tsx->transport_flag & TSX_HAS_PENDING_TRANSPORT) { 929 938 tsx->transport_flag |= TSX_HAS_PENDING_DESTROY; 939 tsx->tsx_user = NULL; 930 940 PJ_LOG(4,(tsx->obj_name, "Will destroy later because transport is " 931 941 "in progress"));
Note: See TracChangeset
for help on using the changeset viewer.