Changeset 610 for pjproject/trunk/pjsip/src/pjsip/sip_endpoint.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_endpoint.c
r602 r610 283 283 on_return: 284 284 pj_rwmutex_unlock_write(endpt->mod_mutex); 285 286 if (status != PJ_SUCCESS) { 287 char errmsg[PJ_ERR_MSG_SIZE]; 288 289 pj_strerror(status, errmsg, sizeof(errmsg)); 290 PJ_LOG(3,(THIS_FILE, "Module \"%.*s\" can not be unregistered: %s", 291 (int)mod->name.slen, mod->name.ptr, errmsg)); 292 } 293 285 294 return status; 286 295 } … … 527 536 528 537 /* Unregister modules. */ 529 while ((mod=endpt->module_list.prev) != &endpt->module_list) { 538 mod = endpt->module_list.prev; 539 while (mod != &endpt->module_list) { 540 pjsip_module *prev = mod->prev; 530 541 pjsip_endpt_unregister_module(endpt, mod); 542 mod = prev; 531 543 } 532 544 … … 596 608 pj_pool_release( pool ); 597 609 610 PJ_UNUSED_ARG(endpt); 598 611 /* 599 612 pj_mutex_unlock(endpt->mutex);
Note: See TracChangeset
for help on using the changeset viewer.