1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

conmon: pass userobj to ss rx not handle

This commit is contained in:
Yichen Gu 2021-08-12 13:22:05 +01:00 committed by Andy Green
parent 387a406f07
commit 4c99f85a16

View file

@ -260,7 +260,7 @@ lws_conmon_ss_json(lws_ss_handle_t *h)
*/
if (h->info.rx)
ret = h->info.rx(h, (uint8_t *)h->conmon_json,
ret = h->info.rx(ss_to_userobj(h), (uint8_t *)h->conmon_json,
(unsigned int)h->conmon_len,
(int)(LWSSS_FLAG_SOM | LWSSS_FLAG_EOM |
LWSSS_FLAG_PERF_JSON));