1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

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

Remove wrong comment.

svn path=/trunk/icecast/; revision=4513
This commit is contained in:
Michael Smith 2003-03-19 07:59:32 +00:00
parent 35e22a005a
commit ca6a611be4

View File

@ -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;