1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +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 750f0a60e6
commit d90cd7be6d

View file

@ -259,7 +259,7 @@ lws_conmon_ss_json(lws_ss_handle_t *h)
*/ */
if (h->info.rx) 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, (unsigned int)h->conmon_len,
(int)(LWSSS_FLAG_SOM | LWSSS_FLAG_EOM | (int)(LWSSS_FLAG_SOM | LWSSS_FLAG_EOM |
LWSSS_FLAG_PERF_JSON)); LWSSS_FLAG_PERF_JSON));