diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-09-22 07:45:26 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-09-22 07:45:26 +0000 |
commit | a15ddb0c409317ffdfd4c6b764398719a4d222e2 (patch) | |
tree | ab1af1c16e3af983166541df52865b455b00598f /pjlib/src/pj/os_core_unix.c | |
parent | 5af236a408105e4a2e4e47f4271afab7c137c31b (diff) |
Fixed #1132: Assertion when (re)starting PJLIB on different thread
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3314 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_core_unix.c')
-rw-r--r-- | pjlib/src/pj/os_core_unix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c index 7d267713..917f8d10 100644 --- a/pjlib/src/pj/os_core_unix.c +++ b/pjlib/src/pj/os_core_unix.c @@ -213,6 +213,9 @@ PJ_DEF(void) pj_shutdown() pj_thread_local_free(thread_tls_id); thread_tls_id = -1; } + + /* Ticket #1132: Assertion when (re)starting PJLIB on different thread */ + pj_bzero(&main_thread, sizeof(main_thread)); #endif /* Clear static variables */ |