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: https://origsvn.digium.com/svn/asterisk/branches/1.4@143475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeff Peeler
2008-09-18 21:01:23 +00:00
parent 128c387bf2
commit 5d6a7c270b

View File

@@ -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),