Ignore:
Timestamp:
Dec 1, 2006 11:14:37 AM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #29: calling pjsua_init() to reinitialize the whole libraries after pjsua_destroy() is called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r815 r839  
    176176static pj_status_t tsx_create( pjsip_module *tsx_user, 
    177177                               pjsip_transaction **p_tsx); 
    178 static void        tsx_destroy( pjsip_transaction *tsx ); 
     178static pj_status_t tsx_destroy( pjsip_transaction *tsx ); 
    179179static void        tsx_resched_retransmission( pjsip_transaction *tsx ); 
    180180static pj_status_t tsx_retransmit( pjsip_transaction *tsx, int resched); 
     
    645645        pjsip_transaction *tsx = pj_hash_this(mod_tsx_layer.htable, it); 
    646646        pj_hash_iterator_t *next = pj_hash_next(mod_tsx_layer.htable, it); 
    647         if (tsx) 
     647        if (tsx) { 
     648            mod_tsx_layer_unregister_tsx(tsx); 
    648649            tsx_destroy(tsx); 
     650        } 
    649651        it = next; 
    650652    } 
     
    921923 
    922924/* Destroy transaction. */ 
    923 static void tsx_destroy( pjsip_transaction *tsx ) 
     925static pj_status_t tsx_destroy( pjsip_transaction *tsx ) 
    924926{ 
    925927    struct tsx_lock_data *lck; 
     
    955957        PJ_LOG(4,(tsx->obj_name, "Will destroy later because transport is " 
    956958                                 "in progress")); 
    957         return; 
     959        return PJ_EBUSY; 
    958960    } 
    959961 
     
    972974 
    973975    pjsip_endpt_release_pool(tsx->endpt, tsx->pool); 
     976 
     977    return PJ_SUCCESS; 
    974978} 
    975979 
Note: See TracChangeset for help on using the changeset viewer.