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:
parent
79bdceb47c
commit
63f64dc37b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user