mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
api: fix shutdown of half-established connections (closes #115)
This commit is contained in:
parent
3feb5a9dab
commit
ff26e14eed
1 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,9 @@ int api_http_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, void
|
|||
break;
|
||||
|
||||
case LWS_CALLBACK_CLOSED_HTTP:
|
||||
if (!s)
|
||||
return -1;
|
||||
|
||||
ret = api_session_destroy(s);
|
||||
if (ret)
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue