From 5d6a7c270bc6eb0af951caa03975b5df1bf81fab Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Thu, 18 Sep 2008 21:01:23 +0000 Subject: [PATCH] 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 --- res/res_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_features.c b/res/res_features.c index cea8577feb..12b2a6bf50 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),