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:
parent
841a762992
commit
4d23fb1389
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue