summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_groupcount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c
index 6737af219..a72277a36 100644
--- a/funcs/func_groupcount.c
+++ b/funcs/func_groupcount.c
@@ -100,7 +100,7 @@ static int group_function_read(struct ast_channel *chan, const char *cmd,
{
struct ast_group_info *gi = NULL;
- ast_app_group_list_lock();
+ ast_app_group_list_rdlock();
gi = ast_app_group_list_head();
while (gi) {
@@ -158,7 +158,7 @@ static int group_list_function_read(struct ast_channel *chan, const char *cmd,
if (!chan)
return -1;
- ast_app_group_list_lock();
+ ast_app_group_list_rdlock();
gi = ast_app_group_list_head();
while (gi) {