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

Fix: Attach the client at the right spot

This commit is contained in:
Philipp Schafft 2024-02-09 10:06:46 +00:00
parent dbffcb6dc0
commit ce91c5b891

View File

@ -221,13 +221,16 @@ static void event_stream_add_client_inner(client_t *client, void *ud)
event = next;
next = event->next;
if (last_event_id && strcmp(event->uuid, last_event_id) == 0 && next) {
event = next;
if (last_event_id && strcmp(event->uuid, last_event_id) == 0) {
break;
}
}
igloo_ro_ref(event, &(state->current_event), event_stream_event_t);
/* emulate the the state of us just being done */
state->current_buffer = "";
state->todo = 0;
}
thread_mutex_unlock(&event_stream_event_mutex);