summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-07-08 09:47:08 +0200
committerAndreas Eversberg2010-07-08 09:47:08 +0200
commitf16d257c5a17f97fe9a939209adcc39f3fae311c (patch)
treec96270e4b24a0f098096e104bf368c5a26cb586d
parentAnother "trylock" test. (diff)
downloadlcr-f16d257c5a17f97fe9a939209adcc39f3fae311c.tar.gz
lcr-f16d257c5a17f97fe9a939209adcc39f3fae311c.tar.xz
lcr-f16d257c5a17f97fe9a939209adcc39f3fae311c.zip
Since this banch only is for debugging the chan_lcr deadlock problem, i will commit from now on without comments.
-rw-r--r--chan_lcr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 53c814f..88f6670 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -1696,10 +1696,10 @@ again:
lock_debug("A1+");
if (ast_channel_trylock(ast)) {
lock_debug("<trylock failed>");
- ast_mutex_unlock(&log_lock);
+ ast_mutex_unlock(&chan_lock);
usleep(1000);
lock_debug("A1++");
- ast_mutex_lock(&log_lock);
+ ast_mutex_lock(&chan_lock);
lock_debug("A1+-");
goto again;
}