Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
c9d6c049
Commit
c9d6c049
authored
Jan 28, 2004
by
Karl Heyes
Browse files
oops, missed these from previous commit, the lock is now taken further up
svn path=/trunk/icecast/; revision=5789
parent
87da84a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/admin.c
View file @
c9d6c049
...
...
@@ -165,8 +165,6 @@ xmlDocPtr admin_build_sourcelist(char *current_source)
xmlNewChild
(
xmlnode
,
NULL
,
"current_source"
,
current_source
);
}
avl_tree_rlock
(
global
.
source_tree
);
node
=
avl_get_first
(
global
.
source_tree
);
while
(
node
)
{
source
=
(
source_t
*
)
node
->
key
;
...
...
@@ -186,7 +184,6 @@ xmlDocPtr admin_build_sourcelist(char *current_source)
source
->
format
->
format_description
);
node
=
avl_get_next
(
node
);
}
avl_tree_unlock
(
global
.
source_tree
);
return
(
doc
);
}
...
...
@@ -700,9 +697,8 @@ static void command_list_mounts(client_t *client, int response) {
DEBUG0
(
"List mounts request"
);
if
(
response
==
PLAINTEXT
)
{
avl_tree_rlock
(
global
.
source_tree
);
if
(
response
==
PLAINTEXT
)
{
node
=
avl_get_first
(
global
.
source_tree
);
html_write
(
client
,
"HTTP/1.0 200 OK
\r\n
Content-Type: text/html
\r\n\r\n
"
);
...
...
@@ -711,7 +707,6 @@ static void command_list_mounts(client_t *client, int response) {
html_write
(
client
,
"%s
\n
"
,
source
->
mount
);
node
=
avl_get_next
(
node
);
}
avl_tree_unlock
(
global
.
source_tree
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment