diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-12-01 11:14:37 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-12-01 11:14:37 +0000 |
commit | b9032ff0ae71378939fda1bacde4ee89a685f6d1 (patch) | |
tree | a0e337be547e0d1b5760c2a226535f9e6f1f550c /pjlib/src/pj/except.c | |
parent | 634423cd1e3f12d6cc70c8e6564d40e986eb0312 (diff) |
Fixed ticket #29: calling pjsua_init() to reinitialize the whole libraries after pjsua_destroy() is called
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@839 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/except.c')
-rw-r--r-- | pjlib/src/pj/except.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pjlib/src/pj/except.c b/pjlib/src/pj/except.c index bb21e05b..4bbd410b 100644 --- a/pjlib/src/pj/except.c +++ b/pjlib/src/pj/except.c @@ -57,6 +57,16 @@ static void exception_cleanup(void) pj_thread_local_free(thread_local_id); thread_local_id = -1; } + +#if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0 + { + unsigned i; + for (i=0; i<PJ_MAX_EXCEPTION_ID; ++i) + exception_id_names[i] = NULL; + } +#else + last_exception_id = 1; +#endif } PJ_DEF(void) pj_push_exception_handler_(struct pj_exception_state_t *rec) |