1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Cleanup: Do not manually close dumpfile but use source_kill_dumpfile()

This commit is contained in:
Philipp Schafft 2022-05-03 07:33:17 +00:00
parent 79bdceb47c
commit 63f64dc37b

View File

@ -226,11 +226,9 @@ void source_clear_source (source_t *source)
if (source->client && source->format)
source->client->con->sent_bytes = source->format->read_bytes;
if (source->dumpfile)
{
if (source->dumpfile) {
ICECAST_LOG_INFO("Closing dumpfile for %s", source->mount);
fclose (source->dumpfile);
source->dumpfile = NULL;
source_kill_dumpfile(source);
}
/* lets kick off any clients that are left on here */