1
0
Fork 0
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:
Steffen Vogel 2017-08-10 19:46:33 +02:00
parent 3feb5a9dab
commit ff26e14eed

View file

@ -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;