mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
api: fix strange behaviour in Docker
This commit is contained in:
parent
cea8ad2877
commit
d5b3c64583
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,9 @@ int api_http_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, void
|
|||
break;
|
||||
|
||||
case LWS_CALLBACK_CLOSED_HTTP:
|
||||
if (!s)
|
||||
break;
|
||||
|
||||
ret = api_session_destroy(s);
|
||||
if (ret)
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue