Commit ca6a611b authored by Michael Smith's avatar Michael Smith

Fix ordering of some calls in source shutdown, silly bug.

Remove wrong comment.

svn path=/trunk/icecast/; revision=4513
parent 35e22a00
......@@ -159,9 +159,6 @@ int source_free_source(void *key)
}
/* The caller MUST have a current write lock on global.source_tree when calling
* this
*/
void *source_main(void *arg)
{
source_t *source = (source_t *)arg;
......@@ -633,11 +630,11 @@ done:
if(source->dumpfile)
fclose(source->dumpfile);
source_free_source(source);
/* release our hold on the lock so the main thread can continue cleaning up */
thread_rwlock_unlock(source->shutdown_rwlock);
source_free_source(source);
thread_exit(0);
return NULL;
......
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