Changeset 2893
- Timestamp:
- Aug 17, 2009 3:56:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_timer.c
r2890 r2893 476 476 } 477 477 478 /* Deinitialize Session Timers */ 479 static void pjsip_timer_deinit_module(void) 480 { 481 is_initialized = PJ_FALSE; 482 } 483 478 484 /* 479 485 * Initialize Session Timers support in PJSIP. … … 505 511 if (status != PJ_SUCCESS) 506 512 return status; 513 514 /* Register deinit module to be executed when PJLIB shutdown */ 515 if (pj_atexit(&pjsip_timer_deinit_module) != PJ_SUCCESS) { 516 /* Failure to register this function may cause this module won't 517 * work properly when the stack is restarted (without quitting 518 * application). 519 */ 520 pj_assert(!"Failed to register Session Timer deinit."); 521 PJ_LOG(1, (THIS_FILE, "Failed to register Session Timer deinit.")); 522 } 507 523 508 524 is_initialized = PJ_TRUE; … … 993 1009 return PJ_SUCCESS; 994 1010 } 995
Note: See TracChangeset
for help on using the changeset viewer.