Commit c9d6c049 authored by Karl Heyes's avatar Karl Heyes

oops, missed these from previous commit, the lock is now taken further up

svn path=/trunk/icecast/; revision=5789
parent 87da84a0
...@@ -165,8 +165,6 @@ xmlDocPtr admin_build_sourcelist(char *current_source) ...@@ -165,8 +165,6 @@ xmlDocPtr admin_build_sourcelist(char *current_source)
xmlNewChild(xmlnode, NULL, "current_source", current_source); xmlNewChild(xmlnode, NULL, "current_source", current_source);
} }
avl_tree_rlock(global.source_tree);
node = avl_get_first(global.source_tree); node = avl_get_first(global.source_tree);
while(node) { while(node) {
source = (source_t *)node->key; source = (source_t *)node->key;
...@@ -186,7 +184,6 @@ xmlDocPtr admin_build_sourcelist(char *current_source) ...@@ -186,7 +184,6 @@ xmlDocPtr admin_build_sourcelist(char *current_source)
source->format->format_description); source->format->format_description);
node = avl_get_next(node); node = avl_get_next(node);
} }
avl_tree_unlock(global.source_tree);
return(doc); return(doc);
} }
...@@ -700,9 +697,8 @@ static void command_list_mounts(client_t *client, int response) { ...@@ -700,9 +697,8 @@ static void command_list_mounts(client_t *client, int response) {
DEBUG0("List mounts request"); DEBUG0("List mounts request");
if (response == PLAINTEXT) { if (response == PLAINTEXT)
avl_tree_rlock(global.source_tree); {
node = avl_get_first(global.source_tree); node = avl_get_first(global.source_tree);
html_write(client, html_write(client,
"HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n"); "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n");
...@@ -711,7 +707,6 @@ static void command_list_mounts(client_t *client, int response) { ...@@ -711,7 +707,6 @@ static void command_list_mounts(client_t *client, int response) {
html_write(client, "%s\n", source->mount); html_write(client, "%s\n", source->mount);
node = avl_get_next(node); node = avl_get_next(node);
} }
avl_tree_unlock(global.source_tree);
} }
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment