Ignore:
Timestamp:
Mar 16, 2011 7:34:16 AM (11 years ago)
Author:
nanang
Message:

Fix #1212:

  • Updated pj_register_strerror() to just return PJ_SUCCESS when the same range

and handler is being re-registered.

  • Removed the usage of static flag of error string handler registration in some

modules, which prevent the re-registration of the handler, e.g: in restarting
pjsua, as such flags never got reseted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r3412 r3455  
    288288    }; 
    289289 
    290     pj_register_strerror(PJSIP_SIMPLE_ERRNO_START, PJ_ERRNO_SPACE_SIZE, 
    291                          &pjsipsimple_strerror); 
     290    status = pj_register_strerror(PJSIP_SIMPLE_ERRNO_START, 
     291                                  PJ_ERRNO_SPACE_SIZE, 
     292                                  &pjsipsimple_strerror); 
     293    pj_assert(status == PJ_SUCCESS); 
    292294 
    293295    PJ_ASSERT_RETURN(endpt != NULL, PJ_EINVAL); 
Note: See TracChangeset for help on using the changeset viewer.