Ignore:
Timestamp:
Mar 28, 2012 7:32:42 AM (12 years ago)
Author:
nanang
Message:

Re #1466: Moved down the atexit callbacks execution in pjmedia & pjsip endpoints to the very end of endpoint destroy sequence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsip/sip_endpoint.c

    r3986 r3988  
    579579    PJ_LOG(5, (THIS_FILE, "Destroying endpoing instance..")); 
    580580 
    581     /* Call all registered exit callbacks */ 
    582     ecb = endpt->exit_cb_list.next; 
    583     while (ecb != &endpt->exit_cb_list) { 
    584         (*ecb->func)(endpt); 
    585         ecb = ecb->next; 
    586     } 
    587  
    588581    /* Phase 1: stop all modules */ 
    589582    mod = endpt->module_list.prev; 
     
    615608    /* Destroy timer heap */ 
    616609    pj_timer_heap_destroy(endpt->timer_heap); 
     610 
     611    /* Call all registered exit callbacks */ 
     612    ecb = endpt->exit_cb_list.next; 
     613    while (ecb != &endpt->exit_cb_list) { 
     614        (*ecb->func)(endpt); 
     615        ecb = ecb->next; 
     616    } 
    617617 
    618618    /* Delete endpoint mutex. */ 
Note: See TracChangeset for help on using the changeset viewer.