diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 39af897361..38c4e64ac7 100755 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -396,7 +396,7 @@ static inline int __ast_cond_wait(const char *filename, int lineno, const char * #endif } - if (t->reentrancy) + if (t->reentrancy > 1) __ast_mutex_logger("%s line %d (%s): mutex '%s' locked more than once, cond_wait will block!\n", filename, lineno, func, mutex_name); @@ -459,7 +459,7 @@ static inline int __ast_cond_timedwait(const char *filename, int lineno, const c #endif } - if (t->reentrancy) + if (t->reentrancy > 1) __ast_mutex_logger("%s line %d (%s): mutex '%s' locked more than once, cond_timedwait will block!\n", filename, lineno, func, mutex_name);