Skip to content

Commit

Permalink
[httpd] Fix infinite loop with more than one ws connection
Browse files Browse the repository at this point in the history
  • Loading branch information
chme committed Dec 27, 2024
1 parent 4206940 commit ea9df4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpd_libevhttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ ws_listener_cb(void *arg, int *ret)
char *reply = NULL;
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);
evws_send_text(client->evws, reply);
Expand Down

0 comments on commit ea9df4f

Please sign in to comment.