diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-18 21:01:23 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-18 21:01:23 +0000 |
commit | f7f234b7d31aa15011888adce8f5afae56023877 (patch) | |
tree | ae5772faac572b54f42f8789df898afb7b7cbbde /res | |
parent | 33b382a42eed85ce54414aa00ee4a6777466af5f (diff) |
compare peer and chan instead of looking at the parked user (pu), which could have possibly already have been freed by the parking thread
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@143475 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index cea8577fe..12b2a6bf5 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -465,7 +465,7 @@ static int park_call_full(struct ast_channel *chan, struct ast_channel *peer, in ast_clear_flag(peer, AST_FLAG_MASQ_NOSTREAM); } - if (pu->notquiteyet) { + if (peer == chan) { /* pu->notquiteyet = 1 */ /* Wake up parking thread if we're really done */ ast_indicate_data(pu->chan, AST_CONTROL_HOLD, S_OR(parkmohclass, NULL), |