X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=88f66703c2ef457ae69daa24da2011f3cce6be80;hp=53c814f9200e497ab2ec1086e4d87edfcfecbf8c;hb=f16d257c5a17f97fe9a939209adcc39f3fae311c;hpb=86dda4048a8de440e3911b08e8ca4f6da519d682 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(""); - 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; }