summaryrefslogtreecommitdiff
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r--channels/chan_h323.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 9951d1240..fc0c7f3c0 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -304,9 +304,7 @@ static int oh323_simulate_dtmf_end(const void *data)
ast_mutex_lock(&pvt->lock);
/* Don't hold pvt lock while trying to lock the channel */
while(pvt->owner && ast_channel_trylock(pvt->owner)) {
- ast_mutex_unlock(&pvt->lock);
- usleep(1);
- ast_mutex_lock(&pvt->lock);
+ DEADLOCK_AVOIDANCE(&pvt->lock);
}
if (pvt->owner) {