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

ws: handle no ws object at sul_ping callback

This commit is contained in:
Andy Green 2019-10-23 12:04:32 +01:00
parent 841a762992
commit 4d23fb1389

View file

@ -841,6 +841,9 @@ lws_sul_wsping_cb(lws_sorted_usec_list_t *sul)
{
struct lws *wsi = lws_container_of(sul, struct lws, sul_ping);
if (!wsi->ws)
return;
/*
* The sul_ping timer came up... either it's time to send a PING
* (!wsi->ws->send_check_ping), or we didn't get the PONG in time