Ticket #867: Return error instead of asserting when PJSUA-LIB fails to open log file
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/sipit24@2723 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
6a3899c4a9
commit
94b8179c12
|
@ -650,7 +650,8 @@ PJ_DEF(pj_status_t) pjsua_init( const pjsua_config *ua_cfg,
|
|||
/* Initialize logging first so that info/errors can be captured */
|
||||
if (log_cfg) {
|
||||
status = pjsua_reconfigure_logging(log_cfg);
|
||||
PJ_ASSERT_RETURN(status == PJ_SUCCESS, status);
|
||||
if (status != PJ_SUCCESS)
|
||||
return status;
|
||||
}
|
||||
|
||||
/* If nameserver is configured, create DNS resolver instance and
|
||||
|
|
Loading…
Reference in New Issue