mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-31 08:26:02 -05:00
[httpd] Fix infinite loop with more than one ws connection
This commit is contained in:
parent
42069405d6
commit
ea9df4f8ee
@ -195,7 +195,7 @@ ws_listener_cb(void *arg, int *ret)
|
|||||||
char *reply = NULL;
|
char *reply = NULL;
|
||||||
short *event_mask = arg;
|
short *event_mask = arg;
|
||||||
|
|
||||||
for (client = ws_clients; client; client = ws_clients->next)
|
for (client = ws_clients; client; client = client->next)
|
||||||
{
|
{
|
||||||
reply = ws_create_notify_reply(*event_mask, &client->requested_events);
|
reply = ws_create_notify_reply(*event_mask, &client->requested_events);
|
||||||
evws_send_text(client->evws, reply);
|
evws_send_text(client->evws, reply);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user