mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-06-30 22:18:19 -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)
|
if (source->client && source->format)
|
||||||
source->client->con->sent_bytes = source->format->read_bytes;
|
source->client->con->sent_bytes = source->format->read_bytes;
|
||||||
|
|
||||||
if (source->dumpfile)
|
if (source->dumpfile) {
|
||||||
{
|
|
||||||
ICECAST_LOG_INFO("Closing dumpfile for %s", source->mount);
|
ICECAST_LOG_INFO("Closing dumpfile for %s", source->mount);
|
||||||
fclose (source->dumpfile);
|
source_kill_dumpfile(source);
|
||||||
source->dumpfile = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* lets kick off any clients that are left on here */
|
/* lets kick off any clients that are left on here */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user