Skip to content
Snippets Groups Projects
Commit 5d08b4c4 authored by Joshua C. Colp's avatar Joshua C. Colp Committed by Gerrit Code Review
Browse files

Merge "res_ari_applications: Fix incorrect call to ao2_lock."

parents 5f29d3b5 e687cf21
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ void ast_ari_applications_list(struct ast_variable *headers,
ao2_lock(apps);
count = ao2_container_count(apps);
ao2_callback(apps, OBJ_NOLOCK | OBJ_NODATA, append_json, json);
ao2_lock(apps);
ao2_unlock(apps);
if (count != ast_json_array_size(json)) {
ast_ari_response_error(response, 500, "Internal Server Error",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment