summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2011-11-02 09:14:50 +0000
committerBenny Prijono <bennylp@teluu.com>2011-11-02 09:14:50 +0000
commit891d9f784ef41fa537b8e239c741162e1c2610c5 (patch)
tree12697b3cca3abe40f23d68dd6625dd347d3091eb
parent50bc012d7a4b979acd073eca17b31b1fe8361adf (diff)
More #1415: added protection when calling log, otherwise assertion will be raised
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3883 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index 4538d841..d2d07576 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -1291,7 +1291,9 @@ PJ_DEF(pj_status_t) pjsua_destroy2(unsigned flags)
{
int i; /* Must be signed */
- PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags));
+ if (pjsua_var.endpt) {
+ PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags));
+ }
/* Signal threads to quit: */
pjsua_var.thread_quit_flag = 1;