mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
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:
@@ -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);
|
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 */
|
/* Wake up parking thread if we're really done */
|
||||||
ast_indicate_data(pu->chan, AST_CONTROL_HOLD,
|
ast_indicate_data(pu->chan, AST_CONTROL_HOLD,
|
||||||
S_OR(parkmohclass, NULL),
|
S_OR(parkmohclass, NULL),
|
||||||
|
Reference in New Issue
Block a user