Changeset 2157


Ignore:
Timestamp:
Jul 18, 2008 11:51:49 PM (16 years ago)
Author:
bennylp
Message:

Related to ticket #192: crash when shutting down pjsua if buddy pool has been destroyed when presence subscription callback is called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r2152 r2157  
    10941094        PJ_LOG(4,(THIS_FILE, "Destroying...")); 
    10951095 
     1096        /* Must destroy endpoint first before destroying pools in 
     1097         * buddies or accounts, since shutting down transaction layer 
     1098         * may emit events which trigger some buddy or account callbacks 
     1099         * to be called. 
     1100         */ 
     1101        pjsip_endpt_destroy(pjsua_var.endpt); 
     1102        pjsua_var.endpt = NULL; 
     1103 
    10961104        /* Destroy pool in the buddy object */ 
    10971105        for (i=0; i<(int)PJ_ARRAY_SIZE(pjsua_var.buddy); ++i) { 
     
    11091117            } 
    11101118        } 
    1111  
    1112         pjsip_endpt_destroy(pjsua_var.endpt); 
    1113         pjsua_var.endpt = NULL; 
    11141119    } 
    11151120 
Note: See TracChangeset for help on using the changeset viewer.