mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix: Fixed regression introduced by r19250.
This fixes the regression introduced by r19250 (461a537561
).
The fix checks if the source client is actually known before printing it's IP-Address.
See also: #2016
This commit is contained in:
parent
4117a2d2e2
commit
72075d0d0d
@ -869,7 +869,11 @@ void source_main (source_t *source)
|
||||
static void source_shutdown (source_t *source)
|
||||
{
|
||||
source->running = 0;
|
||||
ICECAST_LOG_INFO("Source from %s at \"%s\" exiting", source->con->ip, source->mount);
|
||||
if (source->con && source->con->ip) {
|
||||
ICECAST_LOG_INFO("Source from %s at \"%s\" exiting", source->con->ip, source->mount);
|
||||
} else {
|
||||
ICECAST_LOG_INFO("Source at \"%s\" exiting", source->mount);
|
||||
}
|
||||
|
||||
event_emit_clientevent("source-disconnect", source->client, source->mount);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user