diff options
author | Richard Mudgett <rmudgett@digium.com> | 2015-03-17 16:11:36 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2015-03-17 16:11:36 +0000 |
commit | 259e833e88ec9d6cca6a017ac16a426a12165688 (patch) | |
tree | 6fa5b7344de434f688a4d4283ef6982fca97572d | |
parent | e89f83b3adaad637e2d3d2a11041f28a0459222c (diff) |
res_pjsip: Add reason comment.
........
Merged revisions 433005 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | res/res_pjsip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index f063d7963..83133b489 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -2981,6 +2981,12 @@ static int sync_task(void *data) std->fail = std->task(std->task_data); + /* + * Once we unlock std->lock after signaling, we cannot access + * std again. The thread waiting within + * ast_sip_push_task_synchronous() is free to continue and + * release its local variable (std). + */ ast_mutex_lock(&std->lock); std->complete = 1; ast_cond_signal(&std->cond); |