aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-21 22:39:10 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-21 22:39:10 +0000
commit95c85ca4977067f371652d2cac438c7ce836c257 (patch)
treeb4c92510efdf14ed441f1767faeb04b628a77128 /channel.c
parent044ca59d5424d962bd92403e892bfa0a0eede73f (diff)
Rolling back change until kpfleming is comfy
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@22113 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/channel.c b/channel.c
index 5f73bb14e..ae4c747e4 100644
--- a/channel.c
+++ b/channel.c
@@ -1057,9 +1057,6 @@ void ast_channel_spy_remove(struct ast_channel *chan, struct ast_channel_spy *sp
ast_frfree(f);
}
- /* Release all threads waiting on this trigger prior to destroying it */
- ast_cond_broadcast(&spy->trigger);
-
if (ast_test_flag(spy, CHANSPY_TRIGGER_MODE) != CHANSPY_TRIGGER_NONE)
ast_cond_destroy(&spy->trigger);
@@ -1091,7 +1088,7 @@ static void detach_spies(struct ast_channel *chan)
if (spy->status == CHANSPY_RUNNING)
spy->status = CHANSPY_DONE;
if (ast_test_flag(spy, CHANSPY_TRIGGER_MODE) != CHANSPY_TRIGGER_NONE)
- ast_cond_broadcast(&spy->trigger);
+ ast_cond_signal(&spy->trigger);
ast_mutex_unlock(&spy->lock);
}